download Mastguru Android App

Question Detail

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

  • java.lang package
  • java.util package
  • java.awt package
  • java.io package
Similar Questions :

1. 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

2. Executable applet is

  • .applet file
  • .java html
  • .java file
  • .class file

3. Why we use array as a parameter of main method

  • it is syntax
  • Can store multiple values
  • Both of above
  • None of above

4. Which is the predefined package

  • Lang package
  • io package
  • util package
  • All of above

5. Which keyword is used while using interface

  • extend
  • implements
  • throw
  • throws
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment