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.
String s1 = "ABCDEF"; String s2 = s1.substring(0, 3); String s3 = s1.substring(3, 6); String s4 = s2.toUpperCase() + s3.toLowerCase(); How many String objects creates this code? A. 4 B. 5 C. 6 D. StringIndexOutOfBoundsException is thrown I think ans is 4.Please correct me if i m rong. Thanks.