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

A. True

B. False

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  2. All the bitwise operators have the same level of precedence in Java.
  3. Which of the following are the wrapper classes?
  4. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  5. Session bean
  6. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  7. Given the codeString s = new String("abc");Which of the following calls are valid?
  8. It is perfectly legal to assign a subclass object to a supper class reference.
  9. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  10. Connection, Statement are interfaces and ResultSet is a class.
  11. The concept of multiple inheritance is implemented in Java by
  12. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  13. DataInput is
  14. Which of the following statements are true?
  15. To delete a file, we can use an instance of class file.
  16. What does the following line of code do?TextField text=new TextField(10);
  17. Which of the following will produce a value of 22 if x=22.9:
  18. Two methods cannot have the same name in Java.
  19. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  20. Submit button always fires doPost(...)
  21. class.forName(...) creates an instance of java ODBC driver
  22. Frames and applets cannot be used together in the same program.
  23. A static class method can be invoked by simply using the name of the method alone.
  24. Which of the following methods can be used to change the size of a size() *resize()
  25. An EJB is a server-side component that encapsulates the business logic of an application
  26. Which are the valid ways to create DataInputStream streams?
  27. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  28. Declaring a method synchronized guarantees that the deadlock cannot occur.
  29. A package is a collection of
  30. We can add more than one class(es) at the time of compilation Java Beans.