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

Does Java support multiple Inheritance?

Answer Posted / sadikhasan,meta

Java does not support multiple inheritance because it
creates a dimond problem.

if we want to implement multiple inheritance in java then we
use interfaces which support multiple inheritance.

e.g.
interface B
{
}
interface C
{
}
class A implements B,C
{
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are static members inherited to sub classes?

1098


Write a program to solve producer consumer problem in java?

960


What is variable explain?

965


What do you mean by byte code?

959


Do we need to manually write Copy Constructor?

986


What is finally in Java?

1022


What is enhanced loop in java?

942


What is variable in java?

922


In a container there are 5 components. I want to display all the component names, how will you do that?

2143


What is the point of java?

977


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

10986


What is the difference between JDK and JVM?

1192


Define jre i.e. Java runtime environment?

966


Can a constructor have different name than a class name in java?

1094


What is deserialization?

980