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 naming conventions for getters: get() for non-boolean properties, is() for boolean properties. Option B (getCust) follows this pattern. Option A (addSize) suggests an add operation, not getter naming. Option C (deleteRep) doesn't follow getter/setter pattern. Option D (putDimensions) suggests a map-like operation, not JavaBean convention.