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
Can we convert stringbuffer to string?
what is bmg file and how to create that files?what will it contailn?
What is variable and example?
Can you explain the usages of class.forname()?
How to avoid memory leak in java?
What is tostring () method?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is bigger kb or mb?
What is the difference between static (class) method and instance method?
What are the main differences between the java platform and other platforms?
How do you sort words in java?
What are the features of java?
What is the use of inner class?
Explain the importance of finally block in java?
What is the difference between static and global variables and also define what are volatile variables?