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 methods can be used to draw the outline of a square?
  2. The import statement is always the first no comment statement in a Java program files.
  3. When we implement an interface method, it should be declared as public.
  4. Frames and applets cannot be used together in the same program.
  5. A method declared as static can not access non-static class members.
  6. Which of the following are the wrapper classes?
  7. Which of the following will produce a value of 22 if x=22.9:
  8. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  9. putValue(...) method takes _____________________-
  10. Which exception is thrown by the read() method of InputStream class?
  11. One the features of is that an array can store many different types of values.
  12. The setBackground() method is part of the class
  13. Which of the following will produce a value of 10 if x = 9.7?
  14. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  15. The name of the RMI compiler is ___________
  16. A variable declared inside the for loop control can not be referenced out side the loop.
  17. In a single Servlet class we can use____________
  18. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  19. The methods wait() and noify() are defined in
  20. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  21. executeUpdate(------------) returns ___________
  22. Java always provides a default constructor to a class.
  23. Members of a class specified as private are accessible only to the methods of the class.
  24. The use of protected keyword to a member in a class will restrict its visibility as follows:
  25. All methods in an abstract class must be declared abstract.
  26. Which of the following statements are true?
  27. The programmer must explicitly create the system .in and system .out objects.
  28. class.forName(...) creates an instance of java ODBC driver
  29. In the code below, what data types the variable x can have?
  30. We would like to make a member of a class visible in all subclasses regardless of what package they…