Java Interview question-11
3
Question 101: How to create an immutable class in java?
An immutable class in Java is a class whose objects cannot be modified once they are created. Here are the steps to create an immutable class in Java:
Declare the class as final: By declaring...
tusharkant.hashnode.dev10 min read