Which of the following methods can be used to draw the outline of a square?

A. fillRect()

B. drawLine()

C. drawString()

D. all of the above

You can do it
  1. putValue(...) method takes _____________________-
  2. Members of a class specified as private are accessible only to the methods of the class.
  3. EJBs can be of the following type(s)None of the above
  4. The modulus operator (%) can be used only with Integer operands.
  5. Every method of a final in class is implicitly final.
  6. It is an error to have a method with the same signature in both the super class and its subclass.
  7. DataInput is
  8. executeUpdate automatically updates data because___________
  9. With javadoc, which of the following denotes a javadoc comment?
  10. It is perfectly legal to assign a subclass object to a supper class reference.
  11. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  12. A JSP file can be stored_________________
  13. In RMI before running the client program we must start RMI Registry.
  14. In order to connect to a database through java program we must create _______-
  15. Throwing an exception always causes program termination.
  16. The default case is always required in the switch selection structure.
  17. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  18. All the bitwise operators have the same level of precedence in Java.
  19. Which of the following are keywords?
  20. class.forName(...) creates an instance of java ODBC driver
  21. Consider the following class definitions: class maths { student student1; } class student { String name;…
  22. The length of a string object 's1' can be obtained using the expression s1.length.
  23. In a single Servlet class we can use____________
  24. The check box group class is a subclass of the component class.
  25. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  26. Java always provides a default constructor to a class.
  27. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  28. A static class method can be invoked by simply using the name of the method alone.
  29. The keywords reserved but not used in the initial version of Java re:
  30. What does the following line of code do?TextField text=new TextField(10);