Designing an Immutable Class in Java

Let’s talk about designing an immutable class in Java a classic interview question, and one that trips people up more than it should.