AboutNeal Ziring Expertise Almost anything about the core Java platform, with an emphasis on networking. Not familiar with JDBC or the new Java graphics APIs. [Sun Certified Java Programmer, JDK 1.1]
Experience Certified Java Programmer for JDK 1.1 and 2.0.
Expert: Neal Ziring Date: 5/28/2008 Subject: Multiple Inheritance in Java
Question All java classes, by default, extend Object class.
public class ABC is equivalent to public class ABC extends Object
So all java classes are the sub classes of the class Object.
But even though, we can extend other class:-
public class ABC extends XYZ - so its a multiple inheritance which is
not supported by JAVA.
Can you explain this behavior?
Answer Preeyanka,
Java does not have multiple inheritance for classes.