Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is cookie? Why is cookie used?

1023


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()?

1063


What is the servlet?

1051


Explain the difference between a web server and a web container?

959


What are the servlet events?

1021


List some life cycle methods of a servlet.

1022


What is the difference between the include() and forward() methods?

1047


What is the difference between encodeRedirectUrl and encodeURL?

1079


What is the major difference between context parameter and context attribute?

1067


What is the use of welcome-file-list?

993


What is difference between GenericServlet and HttpServlet?

1097


What are the life cycle methods of a servlet?

1007


Why do we have servlet wrapper classes?

1025


How will you pass values from HTML page to the servlet?

1004


What are the different session tracking techniques?

1163