Home

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

A. True

B. False

You can do it
  1. Which of the following methods can be used to draw the outline of a square?
  2. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  3. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  4. Which javadoc tag is used to denote a comment for methods parameters?
  5. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  6. A constructor must always invoke its supper class constructor in its first statement.
  7. A JSP file can be stored_________________
  8. An individual array element that is passed to a method and modified in that method will contain the…
  9. Declaring a method synchronized guarantees that the deadlock cannot occur.
  10. When present, package must be the first no comment statement in the file.
  11. putValue(...) method takes _____________________-
  12. When the string objects are compared with ==, the result is true If the strings contain the same values.
  13. Which of the following are keywords?
  14. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  15. Which of the following will produce a value of 10 if x = 9.7?
  16. Frames and applets cannot be used together in the same program.
  17. forName() is a static factory method
  18. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  19. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  20. One the features of is that an array can store many different types of values.
  21. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  22. The break statement is required in the default case of a switch selection structure.
  23. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  24. Objects are passed to a method by use of call-by-reference.
  25. Consider the following class definitions: class maths { student student1; } class student { String name;…
  26. We would like to make a member of a class visible in all subclasses regardless of what package they…
  27. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  28. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  29. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  30. executeUpdate automatically updates data because___________