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



java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectif..

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

java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectif..

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

Post New Answer

More EJB Interview Questions

Match the ejb functions given below with the functionality equivalent in sql?

0 Answers  


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

0 Answers  


How bean-managed transactions will work?

1 Answers   Wipro,


What are ejb components?

0 Answers  


What is ejb bean in java?

0 Answers  






how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.

3 Answers  


can u explain about design patterns like singleton,builder,factory

0 Answers   EdgeSoft,


How ejb invocation happens?

0 Answers  


What Is EJB Clustering? Explain the Functionality?

1 Answers   Business Architectures, College School Exams Tests, HCL,


Difference between container-managed & bean-managed persistence?

2 Answers  


Define ejb Create() and EjbPostCreate()?

0 Answers  


In what way, the client gets a reference to an existing entity bean?

1 Answers  


Categories