Servlet architecture includes:
a) Servlet Interface
To write a servlet we need to implement Servlet interface.
Servlet interface can be implemented directly or indirectly by extending GenericServlet or HttpServlet class.
b)Servlet methods
3 methods defined in Servlet interface:
init()
service()
destroy().