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 string can be used as mode string for creating a RandomAccessFile object?
  2. A package is a collection of
  3. EJBs can be of the following type(s)None of the above
  4. Which of the following keywords are used to control access to a class member?
  5. The default case is always required in the switch selection structure.
  6. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  7. Which of the following statements are true?
  8. Which of the following represent legal flow control statements?
  9. A catch can have comma-separated multiple arguments.
  10. When we invoke repaint () for a Component, the AWT invokes the method:
  11. Which exception is thrown by the read() method of InputStream class?
  12. The use of protected keyword to a member in a class will restrict its visibility as follows:
  13. Which of the following methods can be used to change the size of a size() *resize()
  14. Declaring a method synchronized guarantees that the deadlock cannot occur.
  15. Submit button always fires doPost(...)
  16. executeUpdate automatically updates data because___________
  17. The programmer must explicitly create the system .in and system .out objects.
  18. The name of a Java program file must match the name of the class with the extension Java.
  19. Declarations can appear anywhere in the body of a Java method.
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. Java is fully object oriented programme.
  22. JSP files creates ________________
  23. What does the following line of code do?TextField text=new TextField(10);
  24. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  25. A method declared as static can not access non-static class members.
  26. Servlet has ___________
  27. In a single Servlet class we can use____________
  28. DataInput is
  29. executeUpdate(------------) returns ___________
  30. Which of the following will produce a value of 10 if x = 9.7?