Answer Posted / tulasi prasad
java does not support multiple inheritance directly because
if we r deriving a sub class from 2 super classes which are
as follows
class A
{
void meth()
{
// substraction;
}
}
class B
{
void meth()
{
// Addition;
}
}
class C extends A,B
{
meth()<--- system get into confusion whether its add
or substarct.
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between collection api and stream api in java8?
What does index mean in java?
What is pojo class in java?
What are wrapper classes in java?
Explain what pure virtual function is?
What does the three dot emoji mean?
What is args length in java?
What is the applet security manager, and what does it provide?
What is the public method modifier?
What are memory tables?
What is Java Shutdown Hook?
What is thread safe singleton?
What is an empty class? What functionality does it offer in Java?
What does the exclamation mark mean in java?
How to restrict a member of a class from inheriting by its sub classes?