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. The setBackground() method is part of the class
  2. Given the codeString s = new String("abc");Which of the following calls are valid?
  3. All the bitwise operators have the same level of precedence in Java.
  4. Which exception is thrown by the read() method of InputStream class?
  5. To delete a file, we can use an instance of class file.
  6. With javadoc, which of the following denotes a javadoc comment?
  7. EJBs can be of the following type(s)None of the above
  8. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  9. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  10. Which of the following methods belong to the String class?
  11. Which of the following command lines options generates documentation for all classes and methods?
  12. Any class may be inherited by another class in the same package.
  13. Java is fully object oriented programme.
  14. In RMI we invoke client method from remote server
  15. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. DataInput is
  18. A string object can not be modified after it is created.
  19. An individual array element that is passed to a method and modified in that method will contain the…
  20. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  21. The length of a string object 's1' can be obtained using the expression s1.length.
  22. executeUpdate(------------) returns ___________
  23. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  24. In the code below, what data types the variable x can have?
  25. A Java monitor must either extend thread class or implement Runnable interface.
  26. In RMI before running the client program we must start RMI Registry.
  27. A package is a collection of
  28. When we invoke repaint () for a Component, the AWT invokes the method:
  29. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  30. Which of the following statements are true?