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...

When the methods init() and Distroy() will be called?

Answer Posted / abhijitbaji

both init() and destroy() are called only once.

init() at the begining when servlet object is cerated.
destroy() when the servlet object is removed from server(at
shoutdown).

service() is called each time when request comes to servlet.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method of the httpservletrequest object is used?

1094


What is the difference between using getSession(true) and getSession(false) methods?

1045


What is lazy loading and what is Generic Servlet Class?

1081


Tell us something about servletconfig interface.

1008


What is the GenericServlet class?

1234


When jsessionid is created?

1046


What mechanisms are used by a Servlet Container to maintain session information?

1173


Explain is servlet mapping?

1010


What is the use of servlet wrapper classes?

1185


Which exception is thrown if the servlet is not initialized properly?

1028


What is servlet in web technology?

1051


What are the uses of servlet and what is servlet chaining?

1095


Define the lifecycle for executing a jsp page.

1083


Why do we have servlet wrapper classes?

1070


What's the difference between authentication and authorization?

1145