Computer Science, asked by pavanicherasala4844, 1 year ago

Difference between genericservlet and httpservlet in java

Answers

Answered by Bilal12th
0
The main difference is that,HttpServlet is a protocol dependent whereas GenericServlet is protocol independent. ... HttpServlet is an abstract class which extendsGenericServlet and implementsjava.io.Serializable interface. ->GenericServlet supports only service() method does not contain doGet() and doPost() methods.
Similar questions