I want to ask that how many objects are created after execution of the following statement in java..
String str = "a"+"b"+"c"+"d"
In my opinion, only one object should get created and that of StringBuilder. Please correct me and explain the logic behind it..thanks in advance.