Tuesday, November 29, 2011

What is the diff b/w doGet() and service() method?

Well the service method tries to determine which of the doXXX method needs to be called.Appropriately either doGet, doPost, doDelete, doPut etc etc are called,:1-doGet()can pass text up to 2k while doPost()pass carry large of test.:Service() method is life cycle method, where as doGet() /doPost() kind of methods are protocol (http)specific methods.Servlet serves client means service() methods gets call 100% ,this method in turn calls protocol specific method :when a request is made wherein Http GET method is used,the servlet is invoked by the Web container which is responsible for calling respective Servlet. Upon receiving the request by the container, servlet&
Category:Servlet Interview Questions

No comments:

Post a Comment