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
What are 5 boolean operators?
Which sorting algorithm is in place?
Which are the two subclasses under exception class?
Is null in java?
What is a method in java?
What is the synonym of procedure?
Explain the Propertie sof class?
What must a class do to implement an interface in java programming?
Will set allow duplicates in java?
What is meant by tab pans?
worst case complexities of Quick sort and Merge sort.
What is the static method?
What is an object in java?
What are the high-level thread states in java programming?
What’s the difference between callable and runnable?