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
Is break statement can be used as labels in java?
What is ++ a in java?
What does system out println () do?
What is singleton service?
Can you start a thread twice in Java?
What is anagram number?
How do you get length in java?
How do you define a variable?
What is the use of private static?
Why is a string immutable?
What is difference overloading and overriding?
What is a void in java?
Which is better 64 bit or 32 bit?
Why are the objects immutable in java?
What is cr keyboard?