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

Why only one Class is public in one file? Explain in details. Thanks in Advance.

12 Answers  


Is static a keyword in java?

0 Answers  


What are the advantages and disadvantages of reference counting in garbage collection?

0 Answers  


Is assembly language a low level language?

0 Answers  


If you do not want your class to be inherited by any other class. What would you do?

0 Answers  


Garbage collection in java?

0 Answers  


what is difference between perfom() & excute() ?

2 Answers   IBM,


Can a double value be cast to a byte?

3 Answers  


explain autoboxing in java?

0 Answers  


Explain the difference between Unicast and Multicast objects?

1 Answers  


what is jms? features of jms

2 Answers   CTS,


Explain Basics of OOP Language in java

0 Answers   Atos Origin,


Categories