Create Immutable class in java
Immutable Object: An object is known as immutable if its state can not be changed over time or we can say after object creation. Need for Immutable Classes In current days, most of the applications are running into multi-threading environments which results in concurrent modification problems. Popular Immutable classes in java All wrapper classes (java.lang.Integer, … Read more