java doesnot support multiple inhetance. but a interface can
support.how the ambiguities are rectified in interfaces?
Answers were Sorted based on User's Feedback
Answer / anshu aggarwal
In java interfaces are used instead of multiple inheritance
to overcome the problem of ambiguity. Ambiguity dont arise
due to interfaces because interfaces contain only abstract
methods that is juat declarations.
Is This Answer Correct ? | 6 Yes | 3 No |
Answer / madhu
The question itself ambiguous. If it is, how could you
overcome the ambiguity of not supporting multiple
inheritance but has a partial support of it by the means of
interfaces? Then the answer could read like this.
Java does not support multiple inheritance but does it
partially by means of interfaces. Interfaces are not actual
entities but is an abstraction. Hence the method
declarations and variable declarations but not exact
implementation, like the classes.
There is no rectification required anywhere here because
there are no errors in this concept. It is just another way
of interpreting OOPS, unlike in C++ or Ada (where multiple
inheritance is allowed).
Good Luck my fellow readers, for all your interviews.
Is This Answer Correct ? | 0 Yes | 1 No |
Explain ejbhome and ejbobject in ejb?
How can enterprise javabeans be accessed from active server pages?
What is ejb role in j2ee?
What is passivation and activation in ejb?
What is meant by manifest files ?
Life Cyle methods in Entity Bean with Container Managed persistence
How to find ejb version in websphere?
What do you mean enterprise javabeans (ejb) container?
What do you mean by ejb ql?
How does ejb invocation take place?
what s the difference b/w EJB 2.0 and EJB 3.0 technically
2 Answers Microsoft, Mind Tree, Tech Mahindra,
Are entity beans allowed to create() methods?