SCJP Java Script
Sunday, 17 March 2013
SCJP - 5 -Which method names follow the JavaBeans standard? (Choose all that apply.)
5. Which method names follow the JavaBeans standard? (Choose all that apply.)
A. addSize
B. getCust
C. deleteRep
D. isColorado
E. putDimensions
Answer:
B and D use the valid prefixes 'get' and 'is'.
A, C, and E are incorrect because 'add', 'delete' and 'put' are not standard JavaBeans
name prefixes. (Objective 1.4)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment