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
how to write a program for sending mails between client and server
How many bits is a string in java?
What is isa relationship?
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?
How do generics work in java?
Can we change the value of static variable?
What is arrays aslist in java?
What state does a thread enter when it terminates its processing in java programming?
What is data and its types?
Can size_t be negative?
How do you achieve singleton?
Explain the difference between private, public, package and protected in java?
Write a method that will remove given character from the string?
What is an iterator interface in java programming?
How do you write a good declaration?