What is the life cycle of a servlet?
Each Servlet has the same life cycle: a) A server loads and initializes the servlet by init () method. b) The servlet handles zero or more client’s requests through service() method. c) The server removes the servlet through destroy() method. The life cycle of a servlet in Java is defined by the Servlet interface. The … Read more