Advance Java MCQ Toupload
Advance Java MCQ Toupload
3. A get request gets information from a client. A post request posts data to a client.
4. The Web server that executes the servlet creates an _________ object and passes this to the
servlet's service method (which, in turn, passes it to doGet or doPost).
5. Which of the following can be used to store client side user state information while avoiding
any impact due to the users web browser configuration ?
6. The servlet initialization parameters are specified in the _______ file as part of a servlet
element.
9. Which of the following is response Header , that should be included to response when status
code is 300 ?
11. Why use RequestDispatcher to forward a request to another resource, instead of using a
sendRedirect ?
Advance Java MCQ model paper
a. Redirects are no longer supported in the current servlet API.
d. The RequestDispatcher does not require a round trip to the client,via network,hense it is more
efficient.
12. What alternatives exist to embedding Java code directly within the HTML markup of your JSP page ?
<% If strPassword.equals(“boss”)
else {}
%>
15. Which of the following can not be used as the scope when using a JavaBean with JSP ?
19.JDBC-ODBC driver implementation is slower than a pure java driver implementation . state
true/false?