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. When we implement an interface method, it should be declared as public.
  2. In a single Servlet class we can use____________
  3. JSP files creates ________________
  4. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  5. executeUpdate(------------) returns ___________
  6. The programmer must explicitly create the system .in and system .out objects.
  7. One the features of is that an array can store many different types of values.
  8. We would like to make a member of a class visible in all subclasses regardless of what package they…
  9. The name of the RMI compiler is ___________
  10. A package is a collection of
  11. What does the following line of code do?TextField text=new TextField(10);
  12. The modulus operator (%) can be used only with Integer operands.
  13. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  14. Session bean
  15. In RMI before running the client program we must start RMI Registry.
  16. Which of the following will produce a value of 22 if x=22.9:
  17. Frames and applets cannot be used together in the same program.
  18. Servlet can have ___________
  19. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  20. DataInput is
  21. class.forName(...) creates an instance of java ODBC driver
  22. The setBackground() method is part of the class
  23. Two methods cannot have the same name in Java.
  24. When present, package must be the first no comment statement in the file.
  25. The import statement is always the first no comment statement in a Java program files.
  26. All the bitwise operators have the same level of precedence in Java.
  27. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  28. The concept of multiple inheritance is implemented in Java by
  29. Which exception is thrown by the read() method of InputStream class?
  30. Java always provides a default constructor to a class.