Archives: Immutable

Java – Create Immutable Class

Immutable Class Example in Java

— An immutable class in Java is one whose content can not be changed once created.
— In Java there are many immutable classes like String, Boolean, Byte, Short, Integer, Long, etc.