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...

why java does not support multiple inheritance

Answer Posted / srividhya.y

java does not support multiple inheritance because of ambiguity 0r confusion problem.but multiple inheritance can be achieved through the concept called interfaces.
A class can implement one or more interfaces.
class A extends B extends C
{
//Not possible
}
class A extends B implements C
{
// Possible
}
from interface to class we are inheriting use the keyword
implements.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use variables?

993


What is used of static keyword in java?

1076


Is it possible to override the main method?

981


What is floor in java?

1039


Differentiate between overriding and overloading cases?

1106


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

1050


Define inheritance with reference to java.

1091


how can i use a nonsynchronized hashtable?

2571


What is variable explain with example?

1063


Can we have try block without catch block?

1031


Is passing by reference faster?

996


Can we use string in switch case in java?

1058


What is the largest long allowed by java?

1066


What is nested top-level class?

1039


define polymorphism in java

1091