download Mastguru Android App

Question Detail

Inheritance means

  • Sub class extends super class
  • Sub class extends Base class
  • Sub class create object of super class
  • All of the above
Similar Questions :

1. Which class cannot be subclassed (or extended) in java?

  • abstract class
  • parent class
  • Final class
  • None of above

2. Which keyword is used while using interface

  • extend
  • implements
  • throw
  • throws

3. Minimum threads in a program are

  • 1
  • 2
  • 5
  • Many

4. Which of the following command is used to compile the Java program

  • java
  • javac
  • javap
  • none of these

5. JAR file contains the compressed version of

  • .java file
  • .class file
  • .jsp file
  • None of above
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment

  • Rao 10 years ago

    i think the answer should be D