Just  go through the immutable class. You could start with these links 

http://docs.oracle.com/javase/tutorial/essential/concurrency/immutable.html

http://stackoverflow.com/questions/5124012/examples-of-immutable-classes