Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Servlets
« Previous
Next »
The life cycle of a servlet is managed by
Options
- servlet context
- servlet container
- the supporting protocol (such as http or https)
- all of the above
CORRECT ANSWER : servlet container
Discussion Board
Servlet Life cycle
The life cycle of a servlet is managed by the servlet container/web container
1. loading the servlet class
2. creating the instance
3. initialize the servlet by calling the init () method
4. calling the Service() methods to handle the request and response
5. and the destroy() method. When the servlet is closed or terminated.
Chukwuemeka Ibebugwu 04-12-2022 01:30 PM
Servlet Life cycle
Servlet container manages the life cycle of the servlet. Servlet life cycle is the entire process from the creation of it till its destrution. The following are the phases used by:
1) The servlet is initialized by calling the init () method.
2) The servlet calls service() method to process a client's request.
3) The servlet is terminated by calling the destroy() method.
4) The Servlet collects the garbage by the garbage collector of the JVM (Java Virtual Machine).
Rohit Sharma 11-30-2014 05:04 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲