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.

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.