Home

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

A. True

B. False

You can do it
  1. Any method in a supper class can be over ridden in its subclass.
  2. A string object can not be modified after it is created.
  3. All methods in an abstract class must be declared abstract.
  4. Connection, Statement are interfaces and ResultSet is a class.
  5. The use of protected keyword to a member in a class will restrict its visibility as follows:
  6. Which of the following statements are valid array declarations?
  7. A static class method can be invoked by simply using the name of the method alone.
  8. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  9. An EJB is a server-side component that encapsulates the business logic of an application
  10. A catch can have comma-separated multiple arguments.
  11. Which of the following methods can be used to remove a component from the display?
  12. Declarations can appear anywhere in the body of a Java method.
  13. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  14. A final class may not have any abstract method.
  15. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  16. We can add more than one class(es) at the time of compilation Java Beans.
  17. In RMI we invoke client method from remote server
  18. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  19. A package is a collection of
  20. executeUpdate automatically updates data because___________
  21. All the bitwise operators have the same level of precedence in Java.
  22. forName() is a static factory method
  23. The concept of multiple inheritance is implemented in Java by
  24. Members of a class specified as private are accessible only to the methods of the class.
  25. Which of the following will produce a value of 22 if x=22.9:
  26. It is perfectly legal to refer to any instance variable inside of a static method.
  27. When present, package must be the first no comment statement in the file.
  28. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  29. Give file is a file object, which of the following are legal statements to create a new file.
  30. The programmer must explicitly create the system .in and system .out objects.