Monday, August 9, 2010

JavaBeans standard: Name Prefixes

Courtesy of SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065) (9780071591065)

Chapter 1, Question 2


Which method names follow the JavaBeans standard? (Choose all that apply.)


A.   addSize

Incorrect because ‘add’ can be used only with Listener methods.

B.   getCust

Valid prefix

C.   deleteRep

Not standard JavaBeans name prefix.

D.   isColorado

Valid prefix

E.   putDimensions

Not standard JavaBeans name prefix.

No comments:

Post a Comment