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


Is java supports multiple inheritance? explain?

Answers were Sorted based on User's Feedback



Is java supports multiple inheritance? explain?..

Answer / kash

Two types of inheritance in Java:
Class inheritance : A sub class can have only one base class ( Single inheritance). Although the sub class can itself be a base class to another sub class ( Multi level inheritance).
Interface inheritance: interface allows multiple classes to implement abstract methods defined on it ( so supports multiple inheritance)

Is This Answer Correct ?    0 Yes 0 No

Is java supports multiple inheritance? explain?..

Answer / praveenkumar

yes java supports multiple inheritance but not directly.
By implementing single inheritance we can acheive multiple
inheritance.See for example

class A{

some method();

}
class B extends A
{


}

class C extends B
{


}
like tht we can acheive multiple inheritance.

Is This Answer Correct ?    3 Yes 18 No

Post New Answer

More Core Java Interview Questions

What modifiers are used with an inner class which is a member of an outerclass?

1 Answers  


What is immutable state?

0 Answers  


How many bits is a float?

0 Answers  


When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


How to disable caching on back button of the browser?

0 Answers  


how to write a program for sending mails between client and server

0 Answers   Lampex,


What is a ?

0 Answers  


Superclass of exception

4 Answers   Nous,


What are different exception types exceptions available in java ?

0 Answers  


What do you mean by aggregation?

1 Answers  


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

0 Answers  


Can we change the value of static variable?

0 Answers  


Categories