+2 votes
in JAVA by

What is mutable object and immutable object in Java?

1 Answer

0 votes
by

If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)

Related questions

+1 vote
asked May 3, 2021 in JAVA by Robindeniel
+1 vote
asked Oct 13, 2020 in JAVA by SakshiSharma
...