This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Sanapathi Do you mean something like this: System.out.println(s1 + s2); In this case the concatenated Stings create a new String that is printed but there is no reference to it kept. They do not create a new literal that is stored in the String pool either, as far as know, somone a little more familiar with String and memory behavior might know better. As far as I know, only literals are kept in the pool.