Life cyce / Interfaces in Java Servlets

Life cycle :
           The life cycle of servlets can be defined with their processes from which they created  , processed and destroyed.
  1. Servlet is initialized with init() method.
  2. 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(),
  3. destroy().Destroys the servlet process.