Which of the following method names follow the JavaBeans standard ?
-
addSize
-
getCust
-
deleteRep
-
putDimensions
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.