What is an immutable class in Java? Immutable class means that once an object is created, we cannot change its content. In Java, all the wrapper classes (like Integer, Boolean, Byte, Short) and String class is immutable. ... No setters(To not have the option to change the value of the instance variable). - Study24x7
Social learning Network
86 followers study24x7 28 Nov 2019 02:35 PM study24x7 study24x7

What is an immutable class in Java? Immutable class means that once an object is created, we cannot change its content. In Java, all the wrapper classes (like Integer, Boolean, Byte, Short) and String class is immutable. ... No setters(To not have the option to change the value o...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles