Home

In a single Servlet class we can use____________

A. doGet(...) method only

B. doPost(...) method only

C. doGet(...) method and doPost(...) method both at a time.

D. Either 'a' or 'b'

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. A string object can not be modified after it is created.
  2. When we implement the Runnable interface, we must define the method
  3. Members of a class specified as private are accessible only to the methods of the class.
  4. What is java -g used for?
  5. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  6. putValue(...) method takes _____________________-
  7. Any class may be inherited by another class in the same package.
  8. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  9. Servlet can have ___________
  10. DataInput is
  11. With javadoc, which of the following denotes a javadoc comment?
  12. Which of the following control expressions are valid for an if statement?
  13. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  14. We can add more than one class(es) at the time of compilation Java Beans.
  15. All the bitwise operators have the same level of precedence in Java.
  16. When the string objects are compared with ==, the result is true If the strings contain the same values.
  17. Which of the following are the wrapper classes?
  18. Java always provides a default constructor to a class.
  19. In order to connect to a database through java program we must create _______-
  20. Two methods cannot have the same name in Java.
  21. What does the following line of code do?TextField text=new TextField(10);
  22. The name of a Java program file must match the name of the class with the extension Java.
  23. Which are the valid ways to create DataInputStream streams?
  24. A variable declared inside the for loop control can not be referenced out side the loop.
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. When present, package must be the first no comment statement in the file.
  27. Which exception is thrown by the read() method of InputStream class?
  28. The use of protected keyword to a member in a class will restrict its visibility as follows:
  29. The concept of multiple inheritance is implemented in Java by
  30. It is an error to have a method with the same signature in both the super class and its subclass.