Home

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 concept of multiple inheritance is implemented in Java by
  2. When the string objects are compared with ==, the result is true If the strings contain the same values.
  3. Which of the following methods can be used to draw the outline of a square?
  4. We can over load methods with differences only in their return type.
  5. A class may be both abstract and final.
  6. The import statement is always the first no comment statement in a Java program files.
  7. The break statement is required in the default case of a switch selection structure.
  8. Given the codeString s = new String("abc");Which of the following calls are valid?
  9. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  10. In RMI before running the client program we must start RMI Registry.
  11. A string object can not be modified after it is created.
  12. In RMI we invoke client method from remote server
  13. A constructor must always invoke its supper class constructor in its first statement.
  14. Declarations can appear anywhere in the body of a Java method.
  15. Which of the following will produce a value of 10 if x = 9.7?
  16. Declaring a method synchronized guarantees that the deadlock cannot occur.
  17. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  18. One the features of is that an array can store many different types of values.
  19. executeUpdate automatically updates data because___________
  20. A JSP file can be stored_________________
  21. With javadoc, which of the following denotes a javadoc comment?
  22. Connection, Statement are interfaces and ResultSet is a class.
  23. A Java monitor must either extend thread class or implement Runnable interface.
  24. Which of the following methods can be used to change the size of a size() *resize()
  25. The default case is always required in the switch selection structure.
  26. The programmer must explicitly create the system .in and system .out objects.
  27. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  28. In the code below, what data types the variable x can have?
  29. The name of a Java program file must match the name of the class with the extension Java.
  30. A final class may not have any abstract method.