How we can make a read-only class in Java?
By Read-only class we are referring to the "IMMUTABLE" concept. You can begin by defining a class so that no methods can cause changes to the internal state.
In such classes, aliasing will have no impact because its internal state is read-only.
BY Best Interview Question ON 13 Jan 2019