Computer Science, asked by ashfakkhan8396869418, 6 months ago

what is the difference between mutable and immutable ​

Answers

Answered by Shristi009
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 Anonymous
0

Tuples are immutable i.e the value cannot be changed. So, Option D is correct.

Similar questions