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

Explain a few methods of overloading best practices in java?

987


Can we override private constructor in java?

981


What is multi-catch block in java?

1084


What is an abstract class and what is it’s purpose?

963


What is difference between ++ I and I ++ in java?

980


How do you compare objects in java?

961


What is a method in programming?

1188


what is the difference between thread and runnable types? : Java thread

1010


What package is math in java?

1005


What is casting in java programming?

1040


How to invoke external process in java.

1081


Why string is not a wrapper class?

1187


If try block is successfully executed, Then Is Finally block executed?

1086


What is the purpose of nested class in java?

1089


Why string is immutable with example?

985