Encircle or highlight in yellow True if statement is correct, otherwise encircle or highlight in yellow False.
a) One class can be extended by several other classes. True or False
b) If one class does not extend any other class Java assumes that it extends Object class. True or False
c) One class can extended several classes True or False
1)True
Reason: Java support Hierarchical inheritance.
2)Ans:True
Reason:Any class in java that does not extend any other class implicitly extends Object class, i.e every class in java directly or indirectly inherits Object class.
3)Ans:False
Reason:Java doesn't support multiple inheritance. You can implement multiple interfaces, but not extend multiple classes.
Get Answers For Free
Most questions answered within 1 hours.