Multiple choice technology architecture

Which of the following 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 'getXxx()' where Xxx is the property name with the first letter capitalized. 'getCust' correctly follows this convention. 'addSize' and 'deleteRep' don't start with 'get' or 'is', and 'putDimensions' starts with 'put' which isn't a standard accessor prefix.