Do you understand immutability? If so, try to answer twenty fifth question in of the quiz for a full-stack developer.
Which of the following statements are true. Choose all correct answers.
- Objects of String are immutable.
- Mutable objects do not have constructors.
- Setters do not change state of mutable objects.
- Mutable class can be instantiated only once.
- Immutable objects have fields that can be changed any time.
For the correct answer scroll down
.
.
.
.
.
.
The correct answer is a. For more information check basics of mutable and immutable classes.