通过查看源码,我们可以看到, FirstServlet(自定义servlet)继承于HttpServlet,HttpServlet继承于GenericServlet,GenericServlet实现了Servlet接口。