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. Which of the following statements about arrays is syntactically wrong

  • arrayName[] p = new arrayName[5];
  • arrayName p[5];
  • arrayName[] p [];
  • arrayName p[][] = new arrayName[2][];

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

  • cloning
  • overloading
  • overriding
  • coping

3. Program which executes applet is known as

  • applet engine
  • virtual machine
  • JVM
  • None of above

4. Constructor has return type

  • True
  • False

5. Which keyword represents object of the present class

  • interface
  • package
  • this
  • static
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment