What is the main difference b/w doGet(), doPost() & service() methods of Servlet? When to use which method?
Service method is a core of the thing, whatever is to be written can be written in service method.
doGet and doPost are extentions of the method type mentioned in ur html form. depending on the type of method one is using for putting the requests, appropriate method will get called..
as you might be knowing get is used for querystring purpose (Generally used for debugging) and post is used through request object. these two methods will get respective calls depending on the method mentioned in your html request.
for more details go through servlet specs.