1.

Explain the lifecycle of a Servlet?

Answer»

Servlert’s life cycle is the entire process from its CREATION until its destruction. A Servlet follows this path:

  • Initialized by CALLING init( ) METHOD
  • Calls service( ) method to process request
  • Terminated by destroy( ) method

Finally, the servlet is NOTHING but the garbage that gets collected by JVM's garbage collector.



Discussion

No Comment Found