Servlet runs each request in a __________ ?

07-09-2020 WT Assessment

Quiz
•
Computers
•
University
•
Easy
Agnes Joshy
Used 2+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
OS shell
JVM
JRE
Separate thread
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
GenericServlet class is encapsulated inside __________ package
java.lang
java.servlet
javax.servlet
javax.servlet.http
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which class provide implementation for service() method ?
HttpServlet
GenericServlet
Servlet
none of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method is called only once in Servlet life cycle ?
service()
initialize()
init()
destroy()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If the client has disabled cookie in the browser, which session management mechanism could the web container employ ?
Session Management using Cookies
Session Management using URL rewriting
Either Cookies or URL rewriting
Cookies and URL rewriting must be used together
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given request is an HttpServletRequest, which code snippets will creates a session if one doesn't exist?
equest.getSession(false);
request.getSession();
request.createSession();
request.getNewSession();
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method is used access the cookies that are added to response object?
getCookies()
returnCookies();
getNewCookies();
cookies();
Create a free account and access millions of resources
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade