List some life cycle methods of a servlet.

devquora
devquora

Posted On: Feb 22, 2018

 

It consists of three methods:

  1. Public void Init: Container initialize the servlet using this method. It is invoked once during the whole life cycle.
  2. Public void service: For every request, this method is called once at a time.
  3. Public void destroys: This is called when a servlet is destroyed from memory.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java Servlet Interview Questions

    What do you mean by Servlet?

    It is designed by the Java software company. It is used to extend the ability of the server...

    Java Servlet Interview Questions

    Which HTTP method is said to be non-idempotent and idempotent?

    If any HTTP brings the same result every time then it means it is idempotent...