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
What are the advantages of Servlet over CGI?
What is servlet used for?
What do you mean by httpservlet?
What are the benefits of using servlet over cgi?
Explain web container.
What are the various ways of session supervision in servlets?
Why the concept of single thread model interface is used?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explain is servlet mapping?
What is the importance of init() method in Servlet ?
Explain servlet events?
explain the advantages of servlet life cycle?
What is ServletContext object?
Explain in brief the directory structure of a web application?
What are the differences between forward() method and sendredirect() methods?