I am not sure on this issue, any help appreciated.
I bought the book "SCJP for Java 5" by k. Sierra and B.Bates and read through the first chapter. It is a extremly good book. Reading through other books that try to prepare you for the exam are not even worth looking at...seriously!
So I took the first SelfTest and when comparing the answers, I got confused on question 5 that deals with JavaBeans standard. It says: Which method names follow the JavaBeans standard? A. addSize B. getCust C. deleteRep D. isColorado E. putDimensions
My answers are: A,B,D, because in the "Two-minute Drill" on page 68 it says: "JavaBeans methods must be namend using camelCase, and depending on the methods purpose, must start with set, get, is, add or remove."
But the correct answer says only B,D. This is also ok for me, cause it is written down this way on pages 8 and 9.
So what is correct now and what is it for the exam?
Many thanks in advance for help.
Ciao,<br /> Tommaso<br /> <br />~*~*~*~<br />There are 10 types of people, those who understand binary and those who don't.
This is a well known error. A is not valid because it should be addSizeListener (whatever a SizeListener would be). The prefix add is always used with a prefix of Listener. The book should be corrected by now. See the K & B errata link at the top of the SCJP forum.