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
Why put method is used?
Can java run on google chrome?
What is a variable declaration?
What is an empirical question?
What are the two types of exceptions in java? Which are the differences between them?
What are different types of constants?
What is array list in java?
What is the differences between c++ and java? Explain
What is a lambda expression ? What's its use ?
What are the types of inner classes (non-static nested class) used in java?
What is the purpose of default constructor?
Why vector class is used?
Explain implementation and how is it different from conversion?
What is function overriding and overloading in java?
What is command line argument