can i call destroy() method in init() method of servlet
Answer Posted / yathirajulu
yes, we call destroy() in init(),because both are called once.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is cookie? Why is cookie used?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is the servlet?
Explain the difference between a web server and a web container?
What are the servlet events?
List some life cycle methods of a servlet.
What is the difference between the include() and forward() methods?
What is the difference between encodeRedirectUrl and encodeURL?
What is the major difference between context parameter and context attribute?
What is the use of welcome-file-list?
What is difference between GenericServlet and HttpServlet?
What are the life cycle methods of a servlet?
Why do we have servlet wrapper classes?
How will you pass values from HTML page to the servlet?
What are the different session tracking techniques?