Hi everybody!!
As i have been preparing for
SCJA exam, i am in the process of taking up the mock exams available in the net.
One such question i came across is:
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
From my understanding of the concepts, i wld answer "d" as accrdng to JavaBeans specs it cannot contain oublic instance variables.
But in the answers given in the same site, "a,d" is what mentioned.
Is it not one of the specifications for
Java Beans that it needs to be Serializable?
Please clarify.
Thanks in advance.