what are immutable classes 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. We can create our own immutable class as well. ... The class must be declared as final (So that child classes can't be created)