S
som
Hi,
I am new to this group and learning Java, i have a doubt can any one
answere to this Q!
When we use the binary string concatenation operator (+), how many
String
Objects will be
created?
String zero = "zero";
char one = "1";
Float ten = 10.1;
String first = zero + "second" + 2 + "third" + 3 + one + ten;
At run time, when the above line of code is executed, how many objects
will
be created?
Regards
Soumya
I am new to this group and learning Java, i have a doubt can any one
answere to this Q!
When we use the binary string concatenation operator (+), how many
String
Objects will be
created?
String zero = "zero";
char one = "1";
Float ten = 10.1;
String first = zero + "second" + 2 + "third" + 3 + one + ten;
At run time, when the above line of code is executed, how many objects
will
be created?
Regards
Soumya