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

request parameter how to find whether a parameter exists in the request object?

1059


Does servlet have main method?

1240


Is servlet synchronized?

1131


What are some disadvantages of storing session state in cookies?

1073


What is servlet and its life cycle?

1163


What is servlet and its advantages?

1102


Elucidate servlet attributes and its scope?

1075


What is the difference between Difference between doGet() and doPost()?

1358


What are the advantages of cookies?

1174


What is the difference between the http servlet and generic servlet?

1207


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1102


What is java servlet session?

1021


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

1126


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

1146


The code in a finally clause will never fail to execute, right?

1146