Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 / krishna

sorry Padmaja,

Multiple inheritance is way of accessing one sub(child) class from multiple base(parent) classes.

in java is possible through interfaces but not through classes.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / manish

There are some reasons because of them java soft remove
multiple inheritance -
Suppose there are 4 classes A,B,C,D.

Class A - contains some abstract methods, final methods,
private methods.
Class B - contains some complete methods, some final
methods.
Class C - contains some static methods, complete methods.
Class D - contains some final methods, static final methods
and so on..

And programmer create a subclass for extending these 4
classes like this -

public class ChildClass extends A,B,C,D
{
---------
--------- // lots of confusions for programmer here.
}

The subclass programmer may be confused. Because he need to
concentrate on what are availables in supper classes. Thats
why java soft people remove multiple inhiritance.

But in case of Interface --

public interface childInterface extends Interface_A,
Interface_B, Interface_C, Interface_D
{
--------
-------- // No confusion here. Because Interface contains
only abstract methods. And abstract method doesn't have
body.
}

Is This Answer Correct ?    1 Yes 1 No

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

Answer / padmaja

since java doesn,t support multiple inheritance,
to overcome the disadvntage of multiple inheritance
interfaces are came.

multiple inheritance means,many sub classes can share
the properties of base class

interfaces are also providing the same feature
but,the class which is implemented the interface
that should give the definition for all the methods present
in the interface.
so,one interface can be implemented by no of classes
by this,the ambiguities are rectified in interfaces

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More EJB Interview Questions

In an EJB project, Howmany tables and How many entity beans are used?

1 Answers  


A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

0 Answers  


What is @enableautoconfiguration?

0 Answers  


Life cycle methods in stateful session beans?

1 Answers   CTS, iFlex,


What is a local interface?

0 Answers  


Why is ejb used?

0 Answers  


Is method overloading allowed in ejb?

0 Answers  


What is ejb in spring?

0 Answers  


Explain ejbhome and ejbobject in ejb?

0 Answers  


What is backing bean?

0 Answers  


what is mean by RMI ? Please answer me. Advance thanks.

3 Answers   Excel,


Explain the concept of ejb ql?

0 Answers  


Categories