Login
Remember
Register
Ask a Question
What is an immutable object? How do you create an Immutable object in Java?
+1
vote
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
What is an immutable object? How do you create an Immutable object in Java?
#java-immutable
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
+1
vote
answered
Jan 24, 2020
by
SakshiSharma
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.
...