Hi all,
I have two questions to ask-
1.In a StringBuilder class,when we create it's object,we pass a
string literal as parameter.Does this literal also goes in the constant pool?
2.During chaining of methods in case of Strings,such as "x.concat("def").toUpperCase().repalce('x',"X")",if the temporary objects created are lost,how come methods are invoked on them when they are lost.i.e if x.concat("def") creates a object which is lost,how come toUpperCase() works?
Please pardon me if i have asked a silly question,and be patient to look at my problem.
Thanks...