Java C10. Servlet
The servlet is constructed, then initialized with the
init method.
Any calls from clients to the service method are
handled.
The servlet is taken out of service, then destroyed
with the destroy method, then garbage collected
and finalized.GenericServlet implements the Servlet and
ServletConfig interfaces.
It provides simple versions of the lifecycle methods
init and destroy and of the methods in the
ServletConfig interface.