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

A. True

B. False

You can do it
  1. We can over load methods with differences only in their return type.
  2. The programmer must explicitly create the system .in and system .out objects.
  3. The concept of multiple inheritance is implemented in Java by
  4. Java always provides a default constructor to a class.
  5. It is perfectly legal to assign a subclass object to a supper class reference.
  6. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  7. A final class may not have any abstract method.
  8. The keywords reserved but not used in the initial version of Java re:
  9. Any class may be inherited by another class in the same package.
  10. Which of the following are keywords?
  11. class.forName(...) creates an instance of java ODBC driver
  12. Which of the following are the wrapper classes?
  13. An individual array element that is passed to a method and modified in that method will contain the…
  14. In RMI before running the client program we must start RMI Registry.
  15. In a single Servlet class we can use____________
  16. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  17. Which key word can protect a class in package from accessibility by the classes outside the package?
  18. When we invoke repaint () for a Component, the AWT invokes the method:
  19. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  20. Given the codeString s = new String("abc");Which of the following calls are valid?
  21. Which of the following are not keywords?
  22. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  23. Which are the valid ways to create DataInputStream streams?
  24. Declaring a method synchronized guarantees that the deadlock cannot occur.
  25. What is java -g used for?
  26. One the features of is that an array can store many different types of values.
  27. The import statement is always the first no comment statement in a Java program files.
  28. With javadoc, which of the following denotes a javadoc comment?
  29. Which of the following statements are true?
  30. The name of the RMI compiler is ___________