java doesnot support multiple inhetance. but a interface can
support.how the ambiguities are rectified in interfaces?
Answer Posted / 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 |
Post New Answer View All Answers
How to determine, that beans are TX or not?
Why stateless is better than stateful?
What is stateful session bean?
What are the various types of entrepreneur java bean?
What is rmi and ejb in java?
What are the design principles for ejb?
What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?
What is the procedure of ejb container to handle exceptions?
What is message-driven bean?
What is EJB object?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
What is stateless programming?
Is soap stateless or stateful?
Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?
What is the difference between session and entity beans? When should I use one or the other?