Which of the following is not true about Java beans?
(a) Implements java.io.Serializable interface
(b) Extends java.io.Serializable class
(c) Provides no argument constructor
(d) Provides setter and getter methods for its properties
(a) Implements java.io.Serializable interface
(b) Extends java.io.Serializable class
(c) Provides no argument constructor
(d) Provides setter and getter methods for its properties
Right choice is (b) Extends java.io.Serializable class
Best explanation: java.io.Serializable is not a class. Instead it is an interface. Hence it cannot be extended.