Home

The setBackground() method is part of the class

A. Applet

B. Component

C. Container

D. Object

You can do it
  1. To delete a file, we can use an instance of class file.
  2. One the features of is that an array can store many different types of values.
  3. Give file is a file object, which of the following are legal statements to create a new file.
  4. Members of a class specified as private are accessible only to the methods of the class.
  5. Frames and applets cannot be used together in the same program.
  6. Which of the following methods can be used to change the size of a size() *resize()
  7. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  8. EJBs can be of the following type(s)None of the above
  9. Java is fully object oriented programme.
  10. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  11. Given the codeString s = new String("abc");Which of the following calls are valid?
  12. Submit button always fires doPost(...)
  13. A catch can have comma-separated multiple arguments.
  14. The default case is always required in the switch selection structure.
  15. In the code below, what data types the variable x can have?
  16. The use of protected keyword to a member in a class will restrict its visibility as follows:
  17. putValue(...) method takes _____________________-
  18. Every method of a final in class is implicitly final.
  19. What is java -g used for?
  20. A static class method can be invoked by simply using the name of the method alone.
  21. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  22. The concept of multiple inheritance is implemented in Java by
  23. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  24. A class may be both abstract and final.
  25. A variable declared inside the for loop control can not be referenced out side the loop.
  26. Which of the following methods can be used to remove a component from the display?
  27. In order to connect to a database through java program we must create _______-
  28. forName() is a static factory method
  29. The import statement is always the first no comment statement in a Java program files.
  30. Consider the following class definitions: class maths { student student1; } class student { String name;…