What is the meaning of immutable in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the meaning of immutable in java?

8th Dec 2020, 5:33 PM
Yash Chaudhari
Yash Chaudhari - avatar
2 Answers
+ 4
An object is considered immutable if its state cannot change after it is constructed. Maximum reliance on immutable objects is widely accepted as a sound strategy for creating simple, reliable code. In short immutable means that you can not change or update it.
8th Dec 2020, 5:55 PM
Ddhruv
Ddhruv - avatar
+ 1
Immutable means the values that you cannot change
9th Dec 2020, 3:20 PM
Anjali Patel
Anjali Patel - avatar