Sunday, 18 September 2016

StringBuffer by new

13.4 StringBuffer object by new operator

Can we create StringBuffer object by using new operator?
  • We can create StringBuffer object by using new operator.
Syntax
           StringBuffer stringBuffer = new StringBuffer(“Nireekshan”);

Thanks for your time.
Nireekshan