Capgemini interview question

What is immutable and how to make a class immutable?

Interview Answer

Anonymous

26 Jun 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.