download Mastguru Android App

Question Detail

Which is the predefined package

  • Lang package
  • io package
  • util package
  • All of above
Similar Questions :

1. The inner class can access private members of the outer class

  • False
  • True

2. 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][];

3. In which we clone the object and their constituent parts

  • Shallow cloning
  • Deep cloning
  • Both of above
  • 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. 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
Post a comment

  • sachin 11 years ago

    all above package is predefine package....
    so why answer is option A?????