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 / mythili pulluru

Java does not support a multiple inheritance because of following reason. for example class A
{
}
class B ExtendsA
{
//variables and methods
}
class c ExtendsA
{
//variables and methods
}
class B ExtendsA
{
//variables and methods
}
class D Extends B,C
{
//variables and methods
}
to compile this program it will give a compile time error because of class D felt in a confusion between B,C which class member to be a inherited(two class having same members) .to avoid this confusion java does not support multiple inheritance.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are accessor methods in java?

944


Is assembly language a low level language?

868


What does  mean in regex?

983


What is null statement?

940


What is a constructor overloading in java?

979


How does multithreading take place on a computer with a single cpu?

946


What is purpose of find feature?

1029


Describe what a thread-local variable is in java?

959


Can a method inside a interface be declared as final?

943


What will be the initial value of an object reference which is defined as an instance variable?

1075


What is <> used for in java?

1068


What are internal variables?

940


Difference between final and effectively final ? Why is effectively final even required ?

926


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2058


What is initial size of arraylist in java?

991