Servlet extended from HttpServlet can also override service() method but then it has to specify its own functionality to call doGet/doPut/doPost etc depending upon the request type.
It can also override doGet/doPost directly and it can also override init()/init(ServletConfig) methods
So i guess a,b,c options can be correct
The statment of question is confusing
posted 11 years ago
You are right Ali the statement is confusing. So if we look at it as an Application developer we will only override doGet()... methods only as other methods are meant to be leave as it in most of the cases.
Also i think if we are extending our servlet from GenericServlet then we have to override of service() method whereas in HTTPServelt its not.