Full-stack dev quiz question #13

Full-stack dev quiz question #13

quizDo you remember Lombok? You should because the thirteenth question of the quiz for a full-stack developer is about it.

 

 

What does the following Lombok annotation do when placed in front of a Java class?

@Setter(AccessLevel.PROTECTED)

Choose a correct answer:

  1. sets protected access level to all fields
  2. generates setters for all fields that are protected
  3. makes all protected setters audited
  4. generates protected setters for all fields
  5. makes all existing setters protected

For the answer scroll down

.

.

.

 

 

 

 

 

 

 

 

 

 

 

.

.

.

The correct answer is d. For more information about it, see Lombok - solution for getter and setter boilerplate code.

If you like what I do, consider buying me a coffee :)

Buy me a coffeeBuy me a coffee