why java does not support multiple inheritance
Answer Posted / srividhya.y
java does not support multiple inheritance because of ambiguity 0r confusion problem.but multiple inheritance can be achieved through the concept called interfaces.
A class can implement one or more interfaces.
class A extends B extends C
{
//Not possible
}
class A extends B implements C
{
// Possible
}
from interface to class we are inheriting use the keyword
implements.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are java packages? What is the significance of packages?
What is callable java?
how to deploy tomcatserver to weblogic server? write d following steps?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is dynamic binding(late binding)?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What is a lambda expression ? What's its use ?
Can an interface extend a class?
Give us the name of the list layoutmanagers in java?
Why is the singleton pattern considered to be an anti pattern?
Why do we need wrapper classes?
What are the differences between heap and stack memory?
Is null a string or object in java?
What is flush () in java?
What is java ceil?