When the methods init() and Distroy() will be called?
Answer Posted / abhijitbaji
both init() and destroy() are called only once.
init() at the begining when servlet object is cerated.
destroy() when the servlet object is removed from server(at
shoutdown).
service() is called each time when request comes to servlet.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the GenericServlet class?
What is ServletConfig object?
What do you mean by default initialization in java servlet?
How to get the current httpsession object?
What is Client-Server Computing?
Why is Servlet so popular?
What do you mean by request dispatcher in servlet? Also explain its methods.
What do you mean by url pattern in servlet?
How to make sure a servlet is loaded at the application startup?
Explain the differences between jsp and servlet.
What do you mean by the servlet chaining?
How can we perform any action at the time of deploying the project?
What are the key methods that are involved in processing of http servlets?
What do you understand by mime type?
Tell the new features added in servletrequest interface i.e. Servlet 2.4