can i call destroy() method in init() method of servlet
Answer Posted / deepesh
Yes, We can call destroy() from init() method but after
coming out from the destroy() it will again process the init
() method like the life cycle has to be. Thus we can not
control the servlet life cycle, though we can call destroy
() from init().
Thanks.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write a program to show the functionality of servlets.
What is cgi and what are its drawbacks?
Which interface should be implemented by all servlets?
How we can call a jsp from the servlet?
Why are http servlets used in programming?
Whats the advantages using servlets over using CGI?
Differentiate between get and post?
What is difference between GenericServlet and HttpServlet?
What is the difference between a generic servlet and http servlet?
What are the differences between servlet context vs servlet config?
Difference between forward() method and sendredirect() method ?
What is the difference between the servlets and cgi programs?
What methodology can be followed to store more number of objects in a remote server?
Why doesn’t a servlet include main()?
What is Client-Server Computing?