Anonymous

What Is The Difference Between Mutable Objects And Immutable Objects?

1

1 Answers

Muddassar Memon Profile
Muddassar Memon answered
The difference between mutable objects and immutable is that, string buffer is a mutable string object, where as a string is a non-mutable object. Mutable basically means changeable any time.

In object-oriented computer programming an immutable object basically is an object which cannot be customized after it is formed. This is opposition to a mutable object, which can be customized after is formed. A particular object can either be completely immutable or a certain attributes in that particular object may be acknowledged as immutable, like applying the const element data attribute in the C++ programming language.

In certain cases, an article is thought to be immutable even while certain internally applied attributes modify but the object's state come into view as unchanging from and peripheral point of view.

Answer Question

Anonymous