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?