×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Which class does a servlet usually inherit from?
    • HttpServlet in javax.servlet.http
    • Is it Object?
      • Of course, it is. Except for 8 primitive data types, all the other creatures in the Java kingdom are Objects.
    • What do you mean? HttpServlet inherit from GenericServlet, GenericServlet inherit from Object. and Servlet is a interface. I don't know the "servlet" you said refers to which one?
      • I get it . The answer "java.servlet.http.HttpServlet" is right.
        • One more step. It is javax.servlet.http.HttpServlet. just kidding. :-)