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
Whether we can get deadlock situation in servlets?
What is a servlet engine?
Is servlet a controller?
Explain the jar and war files in servlet?
How do you create a cookie using servlet?
what is servlet chaining?
Explain how does JSP handle run-time exceptions?
What are the common methods that are included in the http servlet class?
What is the process to implement doget and dopost methods?
What is servlet initializer?
How are filters?
When servlet object is created?
What is Request Dispatcher?
What is the difference between get and post methods?
What is meant by cookies?