Home

The setBackground() method is part of the class

A. Applet

B. Component

C. Container

D. Object

You can do it
  1. A catch can have comma-separated multiple arguments.
  2. What is java -g used for?
  3. It is perfectly legal to refer to any instance variable inside of a static method.
  4. A class may be both abstract and final.
  5. It is an error to have a method with the same signature in both the super class and its subclass.
  6. When present, package must be the first no comment statement in the file.
  7. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  8. Which of the following statements are true?
  9. A variable declared inside the for loop control can not be referenced out side the loop.
  10. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  11. Which of the following methods can be used to remove a component from the display?
  12. Every method of a final in class is implicitly final.
  13. Submit button always fires doPost(...)
  14. The name of the RMI compiler is ___________
  15. Members of a class specified as private are accessible only to the methods of the class.
  16. Any class may be inherited by another class in the same package.
  17. Which of the following are the wrapper classes?
  18. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  19. When we invoke repaint () for a Component, the AWT invokes the method:
  20. The break statement is required in the default case of a switch selection structure.
  21. Session bean
  22. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  23. Frames and applets cannot be used together in the same program.
  24. It is perfectly legal to assign a subclass object to a supper class reference.
  25. Two methods cannot have the same name in Java.
  26. One the features of is that an array can store many different types of values.
  27. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  28. Objects are passed to a method by use of call-by-reference.
  29. An EJB is a server-side component that encapsulates the business logic of an application
  30. Give file is a file object, which of the following are legal statements to create a new file.