PDA

View Full Version : Doubt in object createion


bhavarad
Sep 23, 2017, 10:47 AM
String str="helloworld"; String str1=new String("helloworld"); String str2=new String("helloworld"); How many objects are created in above java code and could you please explain it?