Home

What is the correct answer?

4

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'

Correct Answer :

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


Related Questions

Any method in a supper class can be over ridden in its subclass. Which of the following statements are true? A Java monitor must either extend thread class or implement Runnable interface. Which of the following will produce a value of 10 if x = 9.7? Which of the following will produce a value of 22 if x=22.9: The name of the RMI compiler is ___________ Which of the following are keywords? If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… Which of the following string can be used as mode string for creating… It is an error to have a method with the same signature in both the super… It is an error to catch the same type of exception in two different catch… The expression (x == y && a<b) is true If either x == y is true or… In a single Servlet class we can use____________ Which of the following represent legal flow control statements? Which of the following methods can be used to remove a component from… All the bitwise operators have the same level of precedence in Java. Given the codeString s = new String("abc");Which of the following calls… If m and n are int type variables, what will be the result of the expression'm… An EJB is a server-side component that encapsulates the business logic… What does the following line of code do?TextField text=new TextField(10); We can over load methods with differences only in their return type. A class may be both abstract and final. Which of the following statements are true? The length of a string object 's1' can be obtained using the expression… The methods wait() and noify() are defined in In the code below, what data types the variable x can have? If you want to assign a value of 99 to the variable year, then which of… Which are the valid ways to create DataInputStream streams? The use of protected keyword to a member in a class will restrict its… A method declared as static can not access non-static class members.