Capgemini Interview Question

What is immutable and how to make a class immutable?

Interview Answer

Anonymous

Jun 26, 2020

Immutable means which will not change. In Java, immutable object doesn't change their state after creation. Please check how to make a class immutable.