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 does not support multiple inheritance.
how interface helps in the same?

Answer Posted / sushila sonare

in java only one super class should be there. If we are
saying multiple inheritance there is more then one super
class and at time of object creation super(){super calling
statement} statement is invoked and control goes to super
class but if we are saying multiple inheritance then there
is more than one super class so JVM getting confused,
control goes to where. So avoiding this confusion only
single inheritance are allowed in JAVA you can use this
concepts in multiple levels.

In interface compiler is not keeping default constructor, so
there is no constructor chain. Thats why we can have
multiple interface at same level.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton class example?

1002


Tell us something about an iterator.

934


What is an example of procedure?

1008


What is a method vs function?

1011


Which is faster call by value or call by reference?

912


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1038


Do extraneous variables affect validity?

898


Is java ee a framework?

962


Why hashset is used in java?

1042


Is array synchronized in java?

1022


What is literal example?

934


Explain garbage collection in java?

957


What is the difference between static and global variables and also define what are volatile variables?

1030


What is the meaning of variable in research?

997


Why do we use regex?

1001