Home

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

A. True

B. False

You can do it
  1. Which of the following methods can be used to remove a component from the display?
  2. Which of the following control expressions are valid for an if statement?
  3. A class may be both abstract and final.
  4. The break statement is required in the default case of a switch selection structure.
  5. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  6. The name of the RMI compiler is ___________
  7. Which of the following classes are available in the java.lang package?
  8. Which of the following keywords are used to control access to a class member?
  9. When we implement the Runnable interface, we must define the method
  10. In a single Servlet class we can use____________
  11. Java always provides a default constructor to a class.
  12. With javadoc, which of the following denotes a javadoc comment?
  13. What does the following line of code do?TextField text=new TextField(10);
  14. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  15. Give file is a file object, which of the following are legal statements to create a new file.
  16. Which of the following are the wrapper classes?
  17. Which of the following will produce a value of 22 if x=22.9:
  18. class.forName(...) creates an instance of java ODBC driver
  19. executeUpdate automatically updates data because___________
  20. Declarations can appear anywhere in the body of a Java method.
  21. Throwing an exception always causes program termination.
  22. Servlet has ___________
  23. Frames and applets cannot be used together in the same program.
  24. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  25. It is perfectly legal to assign a subclass object to a supper class reference.
  26. Consider the following class definitions: class maths { student student1; } class student { String name;…
  27. An EJB is a server-side component that encapsulates the business logic of an application
  28. An individual array element that is passed to a method and modified in that method will contain the…
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Which javadoc tag is used to denote a comment for methods parameters?