This topic has been archived. It cannot be replied.
工作学习 / IT技术讨论 / Which class does a servlet usually inherit from?
-guest:;
2001-4-20(#49787@0)
HttpServlet in javax.servlet.http
-bloor(bloor);
2001-4-20(#49792@0)
Is it Object?
-albxu(Yukon);
2001-4-20(#49795@0)
Of course, it is. Except for 8 primitive data types, all the other creatures in the Java kingdom are Objects.
-jabber(jabber);
2001-4-20(#49813@0)
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?
-guest:;
2001-4-20(#49812@0)
I get it . The answer "java.servlet.http.HttpServlet" is right.
-guest:;
2001-4-20(#49814@0)
One more step. It is javax.servlet.http.HttpServlet. just kidding. :-)
-jabber(jabber);
2001-4-20(#49817@0)