R

Ram Sharma • 193.86K Points
Coach

Q. Which of the following is true about inheritance in Java. 
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. 

  • (A) 2 and 3
  • (B) 1 and 3
  • (C) 1 and 2
  • (D) 1, 2 and 3
  • Correct Answer - Option(D)
  • Views: 140
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics