Is java supports multiple inheritance? explain?

Answer Posted / vijayhukkeri@gmail.com

No. Java does't support multiple inheritance. It supports
only multilevel inheritance.Multiple inheritance is
possible in interfaces by using implements keyword.
ex: class a
{
----
}
class b extends a
{
----
}
class c extends a,b // this is not possible

ex2: class a
{
----
}
class b implements a
{
----
}
class c implements a,b // possible
{
---
}

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 5 boolean operators?

723


Which sorting algorithm is in place?

625


Which are the two subclasses under exception class?

619


Is null in java?

644


What is a method in java?

627






What is the synonym of procedure?

634


Explain the Propertie sof class?

695


What must a class do to implement an interface in java programming?

623


Will set allow duplicates in java?

605


What is meant by tab pans?

744


worst case complexities of Quick sort and Merge sort.

691


What is the static method?

649


What is an object in java?

659


What are the high-level thread states in java programming?

699


What’s the difference between callable and runnable?

628