No student devices needed. Know more
20 questions
Servlet runs each request in a __________ ?
OS shell
JVM
JRE
Separate thread
Which of the following statement is not correct about HTTP method ?
A GET request append data to the end of the URL.
A POST request append data to the end of the URL.
HTTP DELETE method request for the Server to delete the resource
HTTP OPTIONS request for communication options available on the request/response chain
Which class provide implementation for service() method ?
HttpServlet
GenericServlet
Servlet
none of the above
_________ is responsible for managing execution of servlet
Web Container
JVM
Servlet Context
Server
The _______ specification defines an application programming interface for communication between the server and the application program
Java Servlet
java jdbc
java applet
java swing
What is the lifecycle of a servlet?
Servlet class is loaded
Servlet instance is created
init(),service() and destroy() methods will be called
All the above
How many times init() method is called during life time of a servlet?
two times
one time
several times
never called
When destroy method() of servlet called ?
for first request
when you close the browser window
when you remove the application from server
none of the above
where can you keep .java files in webapplication(Servlets)?
root directory
WEB-INF
src
classes
web.xml is also called as --------------------
data directory
deployment descriptor
directroy descriptor
none of the above
Where to place user defined webapplications in webserver (Apache Tomcat)
in bin directory
in lib directory
webapps directory
work directory
Which of the following is true about HTTP Get method?
A - The GET method sends the encoded user information appended to the page request.
B - The GET method is the defualt method to pass information from browser to web server.
C - Both of the above.
D - None of the above.
Explore all questions with a free account