download Mastguru Android App

Question Detail

If method have same name as class name and method don’t have any return type then it is known as

  • Destructors
  • Object
  • Variable
  • Constructor
Similar Questions :

1. Interfaces helps in which type of inheritance

  • Multiple inheritance
  • Multilevel inheritance
  • Hierarchical inheritance
  • None of above

2. x=x+1 is equivalent to

  • ++x
  • x++
  • x=x-1
  • None of these

3. Which command is used for interpretation of java program

  • Java
  • javac
  • javap
  • none of above

4. Inheritance means

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

5. Thread class is available in

  • java.io package
  • java.lang package
  • java.awt package
  • java.util package
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment