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
Which of the following is not an isolation level in the JDBC
What class allows you to read objects directly from a stream in java programming?
What is an empty class? What functionality does it offer in Java?
How static variable work in java?
What is the difference between an object-oriented programming language and object-based programming language?
Which is faster string or stringbuilder?
I don’t want my class to be inherited by any other class. What should I do?
How do you read and print a string in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What is an iterator java?
Can we clone singleton object in java?
What do you understand by java?
What is difference between protected and private?
What is the similarity between dynamic binding and linking?
what is meant by Garbage collection?