Option 1
++++++++++
String s1;
String s2;
String s3;
.
Option 2
++++++++++
String s1,s2,s3;
I want to know what the actual difference between top two ways of declaring strings.? Any memory or execution speed changes may there.? or both are same .?
i check myself like below.
compile each java file and open with text editer each Declare1.class,m Declare2.class..
the.. except unrecognized char.. exactly same.
after all. compile make a exactly same class file. so each performance will be same.