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. Which of the following represent legal flow control statements?
  2. Which of the following will produce a value of 10 if x = 9.7?
  3. Throwing an exception always causes program termination.
  4. Objects are passed to a method by use of call-by-reference.
  5. The modulus operator (%) can be used only with Integer operands.
  6. An EJB is a server-side component that encapsulates the business logic of an application
  7. It is an error to have a method with the same signature in both the super class and its subclass.
  8. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  9. JdbcOdbcDriver is an object of Object class
  10. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  11. The default case is always required in the switch selection structure.
  12. A JSP file can be stored_________________
  13. Servlet can have ___________
  14. Which of the following are keywords?
  15. A Java monitor must either extend thread class or implement Runnable interface.
  16. In the code below, what data types the variable x can have?
  17. It is perfectly legal to refer to any instance variable inside of a static method.
  18. The use of protected keyword to a member in a class will restrict its visibility as follows:
  19. The methods wait() and noify() are defined in
  20. Which of the following will produce a value of 22 if x=22.9:
  21. We can add more than one class(es) at the time of compilation Java Beans.
  22. Which of the following are the wrapper classes?
  23. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  24. executeUpdate automatically updates data because___________
  25. The concept of multiple inheritance is implemented in Java by
  26. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  27. The programmer must explicitly create the system .in and system .out objects.
  28. When the string objects are compared with ==, the result is true If the strings contain the same values.
  29. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  30. What does the following line of code do?TextField text=new TextField(10);