In java, a string is a special type of class . u can define an object for String as
String s = "xyz";
or
String s = new String("XYZ");
But StringBuilde ** r is like a regular class , and when you need to create an object for it, you have to use the new keyword (Construct the object), NTN
iamyogish
source share