Immutable Class Example in Java

Immutable

This example program shows how to create a custom or user defined Immutable class in Java.

What is Immutable 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.

Share This Post On: