can i call init() method in destroy() method of servlset. ?

Answer Posted / suresh

when the sevlet is load the class files,in this time to call
init() method is called

destroy method used to the servlet remove from the memory

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by default initialization in java servlet?

596


What is the use of servlet wrapper classes?

663


Why jsp is better than servlet?

524


What is Client-Server Computing?

1889


How forward () method is different from send redirect () method?

513






What is servlet api used for conneting database?

692


What is a web application and what is it’s directory structure?

580


Explain the lifecycle of a servlet?

498


Where do you define dispatcherservlet?

550


Which event is fired at the time of project deployment and undeployment?

780


What are some advantages of storing session state in cookies?

588


Write all the phases defined in servlet life cycle?

579


Servlet is pure java object or not?

715


What are different methods of session management in servlets?

770


What do you mean by cgi in servlet?

624