Answer Posted / shivaprasad
Multiple inheritance is not allowed in java because it creates
DIAMOND PROBLEM.
DIAMOND PROBLEM: Suppose classes B and C extend A and
class D extends to both B and C(multiple inheritance). Now,
if D calls a method in A then it does not know from which
class it has to inherit(either B or C). This is called
diamond problem.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What about features of local inner class?
Is java a pure object oriented language?
State the significance of public, private, protected class?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What is JVM and is it platform independent?
What is binary search in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is the maximum size of hashmap in java?
How does callback work in java?
what is meant by Byte code concept in Java?
What are memory tables?
what are the disadvantages of indexes in oracle?
Can we nested try statements in java?
Implementations of set interface?
Is string is a class in java?