Answer Posted / anu
There are 3 methods in servlet life cycle:init(),service
(),destroy().
whenever servlets loads,init() method is invoked.init
()invokes only once in whole life cycle.then service()
method is invoked which handles all the Http requests and
correspondingly generate Http response.Finally service()
method is invoked for unloading the servlet.this method is
also invoked only once.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explain load on start-up and its importance?
What are the differences between servlet context vs servlet config?
Which java application server is the best?
What do you mean by cgi and what are its drawbacks?
What is meant by a servlet?
Whether thread can be used in servlets?
What is servlet? Explain
How to get the path of servlet in the server?
What is the capacity the doget can send to the server?
What is a deployment descriptor?
When a servlet accepts a call from a client, it receives two objects. What are they?
Servlet is pure java object or not?
What is a servlet-to-servlet communcation?
What is the default http method in the servlet?