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


Please Help Members By Posting Answers For Below Questions

Explain the concept of connection pooling feature of ejb container?

527


Can an ejb send asynchronous notifications to its clients?

541


How can enterprise javabeans be accessed from active server pages?

569


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

595


Explain what is an EJB Context?

617






How is consistency maintained by Stateful Session through transaction updates ?

623


What is difference between stateless and stateful?

501


What is ejb in weblogic?

556


Define EAR, WAR and JAR ?

600


What are the components of ejb?

566


What are the key benefits of the ejb technology?

612


What happens when I change a value in the httpsession from inside an ejb?

529


What is enterprise bean?

597


Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?

523


What are ejb containers?

547