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

please tell me what is wrapper class in java with example ?

6 Answers   HP,


What is methodological theory?

0 Answers  


What checkbox method allows you to tell if a checkbox is checked?

0 Answers  


To obtain design information about an object, which class in used?

1 Answers  


What is meant by JVM? Is JVM platform independent or not?

0 Answers   Wipro,






How many types of syncronization?

2 Answers  


What is Remote Interface ?

6 Answers   CTS,


Write a method to check if input string is palindrome?

0 Answers  


Does .length start 0 java?

0 Answers  


What is anti pattern in java?

0 Answers  


What are the basics of core java?

0 Answers  


What do you mean by Hash Map and Hash Table?

0 Answers   Atos Origin,


Categories