The setBackground() method is part of the class

A. Applet

B. Component

C. Container

D. Object

You can do it
  1. Connection, Statement are interfaces and ResultSet is a class.
  2. Every method of a final in class is implicitly final.
  3. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  4. The default case is always required in the switch selection structure.
  5. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  6. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  7. All the bitwise operators have the same level of precedence in Java.
  8. An EJB is a server-side component that encapsulates the business logic of an application
  9. All methods in an abstract class must be declared abstract.
  10. class.forName(...) creates an instance of java ODBC driver
  11. One the features of is that an array can store many different types of values.
  12. A catch can have comma-separated multiple arguments.
  13. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  14. Servlet can have ___________
  15. Consider the following class definitions: class maths { student student1; } class student { String name;…
  16. Java always provides a default constructor to a class.
  17. When present, package must be the first no comment statement in the file.
  18. executeUpdate automatically updates data because___________
  19. EJBs can be of the following type(s)None of the above
  20. Which of the following will produce a value of 22 if x=22.9:
  21. A variable declared inside the for loop control can not be referenced out side the loop.
  22. A final class may not have any abstract method.
  23. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  24. A class may be both abstract and final.
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. When we implement an interface method, it should be declared as public.
  27. Which of the following methods can be used to change the size of a size() *resize()
  28. A panel can not be added to another panel.
  29. Declaring a method synchronized guarantees that the deadlock cannot occur.
  30. Which of the following string can be used as mode string for creating a RandomAccessFile object?