This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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.