Home

Declarations can appear anywhere in the body of a Java method.

A. True

B. False

You can do it
  1. Give file is a file object, which of the following are legal statements to create a new file.
  2. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  3. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  4. Every method of a final in class is implicitly final.
  5. Declarations can appear anywhere in the body of a Java method.
  6. In a single Servlet class we can use____________
  7. DataInput is
  8. Which of the following will produce a value of 10 if x = 9.7?
  9. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  10. Any method in a supper class can be over ridden in its subclass.
  11. It is an error to have a method with the same signature in both the super class and its subclass.
  12. The programmer must explicitly create the system .in and system .out objects.
  13. Throwing an exception always causes program termination.
  14. forName() is a static factory method
  15. Given the codeString s = new String("abc");Which of the following calls are valid?
  16. EJBs can be of the following type(s)None of the above
  17. Which are the valid ways to create DataInputStream streams?
  18. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  19. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  20. Which of the following represent legal flow control statements?
  21. The concept of multiple inheritance is implemented in Java by
  22. A JSP file can be stored_________________
  23. With javadoc, which of the following denotes a javadoc comment?
  24. The setBackground() method is part of the class
  25. Which of the following statements are true?
  26. It is perfectly legal to refer to any instance variable inside of a static method.
  27. Servlet can have ___________
  28. When we implement an interface method, it should be declared as public.
  29. Which exception is thrown by the read() method of InputStream class?
  30. Submit button always fires doPost(...)