Is java supports multiple inheritance? explain?

Answer Posted / kash

Two types of inheritance in Java:
Class inheritance : A sub class can have only one base class ( Single inheritance). Although the sub class can itself be a base class to another sub class ( Multi level inheritance).
Interface inheritance: interface allows multiple classes to implement abstract methods defined on it ( so supports multiple inheritance)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does pointer mean?

760


Is .net better than java?

777


What is your platform?s default character encoding and how to know this?

2013


What is close method? How it's different from Finalize & Dispose?

793


What is externalizable?

836


Why we go for collections in java?

756


Explain about serializable interface in java?

779


What is the difference between && and & in java?

819


What is singleton class and how can we make a class singleton?

872


When can we say that threads are not lightweight process in java?

836


What is implicit object in java?

815


How does arraylist work in java?

788


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1785


Can we have a try block without catch block?

765


What is appletviewer?

805