This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Q4) Which of the following statement(s) are not true about JavaBeans?
* a) JavaBeans implements java.io.serializable interface. * b) JavaBeans provides no argument constructor. * c) JavaBeans provides getter and setter method for accessing its properties. * d) JavaBeans class can contain public instance variable. * e) None of the above
My answer: b,c? Their answer: a,d
be a well encapsulated person, don't expose your privates, unless you public void getWife()!
I am confused too. There got to be some reason behind it. Either the question is not put in correctly or the answer to the question is misleading. Need some experienced input here .... Anybody??? [ August 06, 2008: Message edited by: Asif ]