Is java supports multiple inheritance? explain?
Answers were Sorted based on User's Feedback
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 |
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 |
explain how many oops concepts available in java with realtime scenarios?
is memory to the abstract class allocated ..or objects not instantiated
What is the is a and has a relation ship in oops concept in java?
Can inner class final?
what is aberivation of java?
What is tochararray in java?
Why we used break and continue statement in java?
As a developer what steps do you take to improve the performance?
What do you mean by of string::valueof expression in java 8?
What is the collections api in java programming?
What are the difference between composition and inheritance in java?
Explain how hashmap works?