Home

Servlet has ___________

A. init method

B. doGet(------) method

C. All of the above methods.

You can do it
  1. The use of protected keyword to a member in a class will restrict its visibility as follows:
  2. A variable declared inside the for loop control can not be referenced out side the loop.
  3. Which of the following control expressions are valid for an if statement?
  4. A class may be both abstract and final.
  5. The length of a string object 's1' can be obtained using the expression s1.length.
  6. Two methods cannot have the same name in Java.
  7. DataInput is
  8. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  9. Which of the following statements are true?
  10. Which javadoc tag is used to denote a comment for methods parameters?
  11. Given the codeString s = new String("abc");Which of the following calls are valid?
  12. When we implement the Runnable interface, we must define the method
  13. Which of the following will produce a value of 10 if x = 9.7?
  14. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  15. Java always provides a default constructor to a class.
  16. Which of the following represent legal flow control statements?
  17. executeUpdate automatically updates data because___________
  18. Session bean
  19. In RMI before running the client program we must start RMI Registry.
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. A package is a collection of
  22. With javadoc, which of the following denotes a javadoc comment?
  23. What is java -g used for?
  24. A Java monitor must either extend thread class or implement Runnable interface.
  25. Which of the following methods can be used to change the size of a size() *resize()
  26. Which are the valid ways to create DataInputStream streams?
  27. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  28. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  29. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  30. It is perfectly legal to refer to any instance variable inside of a static method.