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

What is the GenericServlet class?

1210


What is ServletConfig object?

1162


What do you mean by default initialization in java servlet?

1079


How to get the current httpsession object?

1100


What is Client-Server Computing?

2395


Why is Servlet so popular?

1045


What do you mean by request dispatcher in servlet? Also explain its methods.

1135


What do you mean by url pattern in servlet?

1103


How to make sure a servlet is loaded at the application startup?

1025


Explain the differences between jsp and servlet.

976


What do you mean by the servlet chaining?

1055


How can we perform any action at the time of deploying the project?

1102


What are the key methods that are involved in processing of http servlets?

1089


What do you understand by mime type?

974


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1159