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 autoboxing and unboxing? When does it occur?
How do you achieve singleton?
Which class is the superclass for every class in java programming?
What are the types of relation?
What happens when I use / and % with a negative numerator?
What is the mapping mechanism used by java to identify IDL language?
What is the range of the short type?
Write a java program to count the number of words present in a string?
Explain about main() method in java ?
What are parsers? Dom vs sax parser.
Can you inherit a constructor java?
Explain an intermediate language?
Explain about field hiding in java?
Which is the best sorting technique in java?
What is the use of flag?