Home

It is perfectly legal to assign a subclass object to a supper class reference.

A. True

B. False

You can do it
  1. Servlet can have ___________
  2. Which of the following keywords are used to control access to a class member?
  3. Which of the following command lines options generates documentation for all classes and methods?
  4. When present, package must be the first no comment statement in the file.
  5. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  6. The default case is always required in the switch selection structure.
  7. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  8. forName() is a static factory method
  9. When we implement the Runnable interface, we must define the method
  10. All the bitwise operators have the same level of precedence in Java.
  11. The check box group class is a subclass of the component class.
  12. Which of the following classes are available in the java.lang package?
  13. Given the codeString s = new String("abc");Which of the following calls are valid?
  14. Frames and applets cannot be used together in the same program.
  15. The length of a string object 's1' can be obtained using the expression s1.length.
  16. Objects are passed to a method by use of call-by-reference.
  17. In the code below, what data types the variable x can have?
  18. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  19. A constructor must always invoke its supper class constructor in its first statement.
  20. A JSP file can be stored_________________
  21. Which of the following statements are true?
  22. The modulus operator (%) can be used only with Integer operands.
  23. It is perfectly legal to assign a subclass object to a supper class reference.
  24. Which of the following methods belong to the String class?
  25. Every method of a final in class is implicitly final.
  26. One the features of is that an array can store many different types of values.
  27. A panel can not be added to another panel.
  28. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Which of the following represent legal flow control statements?