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 the parts of methodology?
What is a boolean output?
What are the differences between heap and stack memory?
What is a function easy definition?
What is meant by overloading?
What is entry in java?
Do I need to import java.lang package any time? Why?
Wha is the output from system.out.println(“hello”+null); ?
Can memory leak happen java?
Can you create an object of an abstract class?
Can we have try block without catch block?
What is Java Annotations?
What are the two environment variables that must be set in order to run any java programs?
What happens if main method is not static?
What are the 4 versions of java?