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
What are the different methods of session management in servlets?
Can we override servlet service method?
Explain web application directory arrangement?
Explain get and post.
Name the packages that work with servlet?
What is called Scriptlet?
What are common tasks performed by Servlet Container?
Who is responsible for writing a constructor?
What is the difference between Difference between doGet() and doPost()?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What do you mean by cgi?
How to get the actual path of servlet in server?
What are the common methods that are included in the http servlet class?
Define declaration.
Explain the architechure of a servlet?