Can I override destroy() method of Servlets?

Answer Posted / komal singh adhikari

YES,
we can call and override destroy().

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by url pattern in servlet?

631


Which are the different ways you can communicate between servlets?

529


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2534


How do we call one servlet from another servlet?

592


How can we create deadlock situation in servlet?

853






What exception should be thrown when servlet is not properly initialized?

555


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

586


What is context in servlet?

540


What is difference between GenericServlet and HttpServlet?

571


Explain jsessionid and when is it created?

597


What is Servlet API used for connecting database?

621


Why is servlet used?

686


What is servlet attributes and their scope?

596


How can an existing session be invalidated?

666


What is meant by servlet? What are the parameters of the service method?

579