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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  2. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  3. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  4. Which of the following statements are valid array declarations?
  5. Which of the following are keywords?
  6. The default case is always required in the switch selection structure.
  7. It is an error to have a method with the same signature in both the super class and its subclass.
  8. In the code below, what data types the variable x can have?
  9. A constructor must always invoke its supper class constructor in its first statement.
  10. forName() is a static factory method
  11. class.forName(...) creates an instance of java ODBC driver
  12. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  13. To delete a file, we can use an instance of class file.
  14. The programmer must explicitly create the system .in and system .out objects.
  15. The methods wait() and noify() are defined in
  16. In a single Servlet class we can use____________
  17. The break statement is required in the default case of a switch selection structure.
  18. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  19. Which of the following represent legal flow control statements?
  20. A panel can not be added to another panel.
  21. Any class may be inherited by another class in the same package.
  22. Session bean
  23. In RMI before running the client program we must start RMI Registry.
  24. Declarations can appear anywhere in the body of a Java method.
  25. DataInput is
  26. When we invoke repaint () for a Component, the AWT invokes the method:
  27. An EJB is a server-side component that encapsulates the business logic of an application
  28. Throwing an exception always causes program termination.
  29. When we implement an interface method, it should be declared as public.
  30. A method declared as static can not access non-static class members.