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

A. True

B. False

You can do it
  1. The concept of multiple inheritance is implemented in Java by
  2. Two methods cannot have the same name in Java.
  3. Which exception is thrown by the read() method of InputStream class?
  4. All methods in an abstract class must be declared abstract.
  5. Which of the following are the wrapper classes?
  6. A JSP file can be stored_________________
  7. We can add more than one class(es) at the time of compilation Java Beans.
  8. Which of the following will produce a value of 10 if x = 9.7?
  9. When the string objects are compared with ==, the result is true If the strings contain the same values.
  10. What does the following line of code do?TextField text=new TextField(10);
  11. The length of a string object 's1' can be obtained using the expression s1.length.
  12. executeUpdate(------------) returns ___________
  13. The name of a Java program file must match the name of the class with the extension Java.
  14. A package is a collection of
  15. JSP files creates ________________
  16. One the features of is that an array can store many different types of values.
  17. A constructor must always invoke its supper class constructor in its first statement.
  18. DataInput is
  19. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. Throwing an exception always causes program termination.
  22. A variable declared inside the for loop control can not be referenced out side the loop.
  23. JdbcOdbcDriver is an object of Object class
  24. The use of protected keyword to a member in a class will restrict its visibility as follows:
  25. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  26. In order to connect to a database through java program we must create _______-
  27. EJBs can be of the following type(s)None of the above
  28. An individual array element that is passed to a method and modified in that method will contain the…
  29. Give file is a file object, which of the following are legal statements to create a new file.
  30. The check box group class is a subclass of the component class.