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.
Hi Geetha according to what James had posted I feel that in 2nd and 3rd code blocks there is no change in the String 2nd -because T is not present in String at all, 3rd- since old and new variable are equal.
But any comparison of String's with == is not encouraged instead if you use string1.equals(string2) it will give true results.