Explain the methods in Generic and HTTP Servlets?

Answers were Sorted based on User's Feedback



Explain the methods in Generic and HTTP Servlets?..

Answer / guest

Generic servlets has service() method to handle requests

HttpServlet has doGet(),doPost(),doHead() mehtods

Is This Answer Correct ?    6 Yes 0 No

Explain the methods in Generic and HTTP Servlets?..

Answer / chaitu

All the methods in Generic servlets are abstract methods.
Even though HTTP Servlet is an abstract there are no
abstract methods

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is servlet interface?

0 Answers  


What is the difference between jsp and servlet life cycle?

0 Answers  


What are the security issues in Servlets?

2 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  


What is the use of servletconfig interface?

0 Answers  






What is the disadvantage of cookies?

0 Answers  


How do you design microservices?

0 Answers  


What is http servlet? Explain with the help of an example.

0 Answers  


What is the difference between encodeRedirectUrl and encodeURL?

0 Answers  


if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler

4 Answers   Polaris,


Are Servlets Thread Safe? How to achieve thread safety in servlets?

0 Answers  


Explain the difference between get and post method in servlet?

0 Answers  


Categories