Which of the following is true about inheritance in Java. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which of the following is true about inheritance in Java.

The options are : 1) In Java all classes inherit from the Object class directly or indirectly. The Object class is root of all classes. 2) Multiple inheritance is not allowed in Java. 3) Unlike C++, there is nothing like type of inheritance in Java where we can specify whether the inheritance is protected, public or private.

15th Jul 2018, 7:46 AM
Bharathi Priya
Bharathi Priya - avatar
1 Answer
15th Jul 2018, 7:58 AM
Janning⭐
Janning⭐ - avatar