Showing posts with label immutable class. Show all posts
Showing posts with label immutable class. Show all posts

Using Mutable Objects inside user defined Immutable Class

We may aware of creating user defined Immutable Class in Java. Basic steps to follow to create immutable class are Maintain all member variables and class has defined with final keyword so that variables...

How to create user defined immutable class in Java?

In this tutorial we will discuss about how to create immutable class in Java. When we say about immutable we will be remembered about important interview question like What is the difference between String...