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
What is dynamic array in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is visibility mode?
Explain enumeration in java?
Why strings in java are called as immutable?
Explain scope or life time of local variables in java?
What is the difference between an inner class and a sub-class?
What is bigger kb or mb?
How to make a non daemon thread as daemon?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Which are different kinds of source code?
What are the data types supported by java?
What is the symbol for line break?
What are the different tags provided in jstl?
What class of exceptions are generated by the java run-time system?