Multiple choice technology programming languages

Which method names follow the JavaBeans standard?

  1. addSize

  2. getCust

  3. deleteRep

  4. putDimensions

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JavaBeans getter methods follow the pattern get where the property name starts lowercase. getCust() correctly accesses a property named cust. The other options don't follow JavaBeans conventions: addSize sounds like a bulk operation, deleteRep and putDimensions don't use the get prefix for accessors.