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
Why do we use variables?
What is used of static keyword in java?
Is it possible to override the main method?
What is floor in java?
Differentiate between overriding and overloading cases?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Define inheritance with reference to java.
how can i use a nonsynchronized hashtable?
What is variable explain with example?
Can we have try block without catch block?
Is passing by reference faster?
Can we use string in switch case in java?
What is the largest long allowed by java?
What is nested top-level class?
define polymorphism in java