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
Answer Posted / 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 View All Answers
What’s jboss cache in short?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Explain about RMI Architecture?
What you mean by COM and DCOM?
Do you think that java should have had pointers?
What do you mean by Socket Programming?
Difference between loadclass and class.forname?
What is the difference between system.out ,system.err and system.in?
What value does read() return when it has reached the end of a file?
Do I need to import javlang package any time? Why ?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
If your ui seems to freeze periodically, what might be a likely reason?
What is clustering? What are the different algorithms used for clustering?
Describe, in general, how java's garbage collector works?
What’s jboss jbpm?