Life cycle :
The life cycle of servlets can be defined with their processes from which they created , processed and destroyed.
The life cycle of servlets can be defined with their processes from which they created , processed and destroyed.
- Servlet is initialized with init() method.
- Service() method reads the data requested from the server and processes it with the database , produces the output to the server.
i) doPost(),
ii) doGet(), - destroy().Destroys the servlet process.