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
Does string isempty check for null?
What is array and arraylist in java?
What does microservices mean?
What is the arraylist in java?
What is the difference between an if statement and a switch statement?
Explain different types of wrapper classes in java?
What is an immutable object?
Can a lock be acquired on a class in java programming?
What was java originally called?
How do you write a scanner class in java?
What is an example of a constant variable?
Can we write class inside a class in java?
Explain different ways of creating a thread. Which one would you prefer and why?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Explain the differences between static and dynamic variables?