Ques:- What is immutable object?
Right Answer:
An immutable object is an object whose state cannot be modified after it is created. Any changes to its data result in the creation of a new object rather than altering the existing one.
An immutable object is an object whose state cannot be modified after it is created. Any changes to its data result in the creation of a new object rather than altering the existing one.