Code Pumpkin

Tag Archives: Builder Design Pattern

How to create Immutable Class in Java

April 24, 2017
Posted by Abhi Andhariya

Immutable class is a class which once created, it's contents can not be changed. In other words, Immutable objects are the objects whose state can not be changed once constructed.  In Java, String and all the wrapper classes e.g. Boolean, Integer, Long, etc are immutable classes. We can also create our own immutable class.  Why should we write Immutable Classes? Here are […]

Total Posts : 124
follow us in feedly
Contribute Your Articles

Cauvery Calling

Cauvery Calling

We may not get time to plant a tree, but we can definitely donate ₹42 per Tree.

Join us to save the planet Earth by donating at CodePumpkin Cauvery Calling Campaign.

Like Us On Facebook