Hi Rajani,
I think u r wrong and Viji's reply is correct.
Lets see how it happens
String s1,s2,s3,s4;
s1 = "Hello"; ===> "Hello" created in String pool
s2 = s1; **** The previous "Hello" is used here
s3 = s2 + "Pal";===>"Pal" created in String pool then "HelloPal"
is created
s4 = s3; **** The previous "HelloPal" is used here
Hope this is clear.
Nissi