The setBackground() method is part of the class

A. Applet

B. Component

C. Container

D. Object

You can do it
  1. JSP files creates ________________
  2. When we implement an interface method, it should be declared as public.
  3. In order to connect to a database through java program we must create _______-
  4. Which key word can protect a class in package from accessibility by the classes outside the package?
  5. It is perfectly legal to assign a subclass object to a supper class reference.
  6. Connection, Statement are interfaces and ResultSet is a class.
  7. Throwing an exception always causes program termination.
  8. We can add more than one class(es) at the time of compilation Java Beans.
  9. A class may be both abstract and final.
  10. Every method of a final in class is implicitly final.
  11. class.forName(...) creates an instance of java ODBC driver
  12. Which of the following classes are available in the java.lang package?
  13. To delete a file, we can use an instance of class file.
  14. Which are the valid ways to create DataInputStream streams?
  15. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  16. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  17. What is java -g used for?
  18. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  19. A Java monitor must either extend thread class or implement Runnable interface.
  20. With javadoc, which of the following denotes a javadoc comment?
  21. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  22. Which of the following statements are true?
  23. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  24. The modulus operator (%) can be used only with Integer operands.
  25. putValue(...) method takes _____________________-
  26. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  27. DataInput is
  28. Which of the following methods can be used to draw the outline of a square?
  29. Any method in a supper class can be over ridden in its subclass.
  30. Which of the following methods can be used to remove a component from the display?