Question Detail

Package of drawstring() method is

  • java.applet
  • java.io
  • javax.swing
  • java.awt
Similar Questions :

1. Can we declare abstract static method

  • Yes
  • No

2. Which method of java is invoked by JVM to reclaim the inaccessible memory location

  • reclaim() method
  • final() method
  • finalize() method
  • both b and c

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

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. The class java.sql.Timestamp is associated with

  • java.util.Time
  • java.sql.Time
  • java.util.Date
  • None of above
Read more from - Java Objective Questions Answers -Chapter 1