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.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.