why java does not support multiple inheritance
Answer Posted / sskur
To say why java doesn't support inheritance directly like c++
should be the diamond problem faced by c++,
(Diamond problem is an ambiguity that arises when two
classes B and C inherit from A, and class D inherits from
both B and C. If a method in D calls a method defined in A
(and does not override it), and B and C have overridden that
method differently, then via which class does it inherit: B,
or C?)
| Is This Answer Correct ? | 206 Yes | 22 No |
Post New Answer View All Answers
What is the purpose of the file class in java programming?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
What do you mean by aggregation?
Name four container classes.
What is the best definition for data?
What are the important features of Java 10 release?
Why is stringbuffer called mutable?
Can a static block throw exception?
What is the base class for error and exception?
What are advantages of using Java?s layout managers than windowing systems?
What is the right data type to represent a price in java?
What is the default value of the local variables?
How do you declare a destructor in java?
Is java free for commercial?
Can an object subclass another object?