The Depths of Immutable Class Design — 1

Fig1.1 Code Snippet showing the caution for designing the immutable classes

Have you ever wondered why we need to mark the class as final, and why no setters, why private final fields while designing Immutable classes in Java?

We all know the rules of creating immutable classes. If you aren’t aware of those rules there are tons of articles on Medium already written…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
KRISHNA KISHORE V

KRISHNA KISHORE V

Software Architect, Full Stack Developer, Senior Software Consultant, Technical Content Writer, Free Lancer