1) which method of the RequestDispatcher cannot be called
once the output is sent to the client?
a. forward
b. include
c. both a&b

2) which interface should an object implement to get
notified of changes to the list of active sessions in a web
application?
a. HttpSessionListener
b. HttpSessionActivationListener
c. HttpSessionAttributeLIstener

3) A user can select multiple locations from a list box on
an HTML form, which of the following methods can be used to
retrieve all the selected location?
a. getParameter()
b. getParameterValues()
c. getParamValues()

4) which of the following methods should be used to send
character text to the client?
a. ServletResponse.getWriter()
b. ServletResponse.getOutputStream()
c. ServletResponse.getOut()

5) which implicit object is always available in a JSP page?
a. exception
b. session
c. out

6) which inclusion mechanism doesn't include the source of
the page, rather the output of the page.
a. include directive
b. jsp:include action
c. Bothe a& b

7) which attribute of the page controls whether a page
participates in session or not?
a. session-allowed
b. session
c. isSession



1) which method of the RequestDispatcher cannot be called once the output is sent to the client? ..

Answer / dhanu

1.(b)include,
2.(c)HttpSessionAttributeLIstener
3.(a)getParameter()
4.(a)ServletResponse.getWriter()
5.(a)exception
6.(c)Bothe a& b
7.(b)session

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More Advanced Java Interview Questions

A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

0 Answers  


what do u mean by java bean??

2 Answers   ADP,


Explain about local interfaces.

0 Answers  


What is a session? Can you share a session object between different theads?

0 Answers  


hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  






What is deadlock?

2 Answers  


What is ripple effect?

0 Answers  


What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


What are callback interfaces?

0 Answers  


Which javutil classes and interfaces support event handling?

0 Answers  


What is the difference between static and non-static with examples?

0 Answers   HCL,


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

0 Answers   IBM,


Categories