Full-stack dev quiz question #25

Full-stack dev quiz question #25

quiz

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.

  1. Objects of String are immutable.
  2. Mutable objects do not have constructors.
  3. Setters do not change state of mutable objects.
  4. Mutable class can be instantiated only once.
  5. 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.