How to create Immutable Class in Java
April 24, 2017
Posted by Abhi Andhariya
Immutable class is a class which once created, it's contents can not be changed. In other words, Immutable objects are the objects whose state can not be changed once constructed. In Java, String and all the wrapper classes e.g. Boolean, Integer, Long, etc are immutable classes. We can also create our own immutable class. Why should we write Immutable Classes? Here are […]