This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am using a String say s = "hello" in my class. As per the immutable pattern that the value for s should not change till end of my class right? When i do s += "world", it gives me s = "helloworld". Now the value of the object s has been changed !. Then how is this immutable.