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. Which method of the Applet class displays the result of applet code on screen

  • run() method
  • paint() method
  • drawString() method
  • main() method

2. Process of creating exact copy of the existing object is called

  • cloning
  • overloading
  • overriding
  • coping

3. Package of drawstring() method is

  • java.applet
  • java.io
  • javax.swing
  • java.awt

4. ____ allows java code to run in the JVM to call and be called by native applications

  • JFI
  • JNI
  • NJI
  • FJI

5. In java, gc() method is available in which package

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