Is java supports multiple inheritance? explain?
Answer Posted / 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 |
Post New Answer View All Answers
What are the states of thread in java?
What are the methods available in a class?
What are the advantages of user defined functions?
What are classloaders?
what is the difference between a threads start() and run() methods? : Java thread
How to use string tokenizer class.
What is byte data type?
What does mean in regex?
What is the difference between overriding & overloading?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What is the importance of static variable?
What is a classloader in java?
In how many ways we can do exception handling in java?
Can string be considered as a keyword?
How do you allocate memory to object?