Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Siva Selvan

Greenhorn
+ Follow
since Jun 26, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Siva Selvan

6)System.out.println(s1 + " " + s2);
-----------------------------------------

I have doubt in line 6. How many object(s) are created in this line?
2 or 3
Becoz
At first " " -- > one String object is created, say x
Next s1 + x --> new String object ,say y
Then y + s2 --> new String object , say z
Hence 3 objects created in Total [my understanding]!
Is it correct?