posted 15 years ago
Hi,
there is incorrect answer for question no. 5 of Chapter 1
the question is :
Which method names follow the JavaBeans standard? (Choose all that apply.)
A. addSize
B. getCust
C. deleteRep
D. isColorado
E. putDimensions
Answer:
� 3 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.
but the Two minute drill of first chapter says that:
JavaBeans methods must be named using camelCase, and depending on the
method's purpose, must start with set, get, is, add, or remove.
so the option A addSize must be correct.
am I correct??
[ June 14, 2008: Message edited by: sagar kumbhar ]