what is the difference between mutable and immutable
Answers
Answered by
0
Answer:
A mutable object can be changed after it's created, and an immutable object can't. That said, if you're defining your own class, you can make its objects immutable by making all fields final and private. Strings can be mutable or immutable depending on the language
Answered by
0
Tuples are immutable i.e the value cannot be changed. So, Option D is correct.
Similar questions
Accountancy,
3 months ago
Math,
3 months ago
English,
11 months ago
Math,
11 months ago
English,
11 months ago