+1 vote
in JAVA by
What is an immutable object? How do you create an Immutable object in Java?

1 Answer

+1 vote
by
Immutable objects are those whose state cannot be changed once created. Any modification will result in a new object e.g. String, Integer, and other wrapper class. Please see the answer for step by step guide to creating Immutable class in Java.

Related questions

0 votes
asked Oct 27, 2020 in JAVA by sharadyadav1986
+1 vote
asked Mar 16, 2021 in JAVA by Robindeniel
...