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

explain how many oops concepts available in java with realtime scenarios?

1 Answers   TCS,


is memory to the abstract class allocated ..or objects not instantiated

7 Answers   Synechron, TCS,


What is the is a and has a relation ship in oops concept in java?

9 Answers   BearingPoint, TCS,


Can inner class final?

0 Answers  


what is aberivation of java?

14 Answers  






What is tochararray in java?

0 Answers  


Why we used break and continue statement in java?

0 Answers  


As a developer what steps do you take to improve the performance?

4 Answers  


What do you mean by of string::valueof expression in java 8?

0 Answers  


What is the collections api in java programming?

0 Answers  


What are the difference between composition and inheritance in java?

0 Answers  


Explain how hashmap works?

0 Answers  


Categories