Home

The setBackground() method is part of the class

A. Applet

B. Component

C. Container

D. Object

You can do it
  1. Which of the following will produce a value of 22 if x=22.9:
  2. Which of the following will produce a value of 10 if x = 9.7?
  3. The import statement is always the first no comment statement in a Java program files.
  4. Which of the following are not keywords?
  5. Which of the following command lines options generates documentation for all classes and methods?
  6. Which of the following methods can be used to change the size of a size() *resize()
  7. Which of the following statements are true?
  8. Every method of a final in class is implicitly final.
  9. A panel can not be added to another panel.
  10. All methods in an abstract class must be declared abstract.
  11. The length of a string object 's1' can be obtained using the expression s1.length.
  12. The check box group class is a subclass of the component class.
  13. An EJB is a server-side component that encapsulates the business logic of an application
  14. A method declared as static can not access non-static class members.
  15. Give file is a file object, which of the following are legal statements to create a new file.
  16. The concept of multiple inheritance is implemented in Java by
  17. Frames and applets cannot be used together in the same program.
  18. EJBs can be of the following type(s)None of the above
  19. In RMI before running the client program we must start RMI Registry.
  20. class.forName(...) creates an instance of java ODBC driver
  21. One the features of is that an array can store many different types of values.
  22. When present, package must be the first no comment statement in the file.
  23. The methods wait() and noify() are defined in
  24. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  25. Which of the following methods can be used to draw the outline of a square?
  26. Which of the following are keywords?
  27. Which of the following methods can be used to remove a component from the display?
  28. Objects are passed to a method by use of call-by-reference.
  29. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  30. Which of the following string can be used as mode string for creating a RandomAccessFile object?