Skip to main content

Immutable Classes in Java

Learn Immutable Classes in Java (Advanced Java Concepts, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction An immutable class creates objects whose state never changes after construction, such as String, Integer and records .

More lessons in Advanced Java Concepts