1.

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 propertiesI got this question by my college director while I was bunking the class.Origin of the question is Java Beans in section Java Beans & JDBC of Java

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions