intermediateOOP Fundamentals for LLD
What is immutability, and how do you design a genuinely immutable class in Java?
Tests whether you know all the rules — final fields, no setters, defensive copying of mutable fields — not just marking a class final.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is immutability, and how do you design a genuinely immutable class in Java?