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 servlet lazy loading?

1230


Which http method is said to be non-idempotent and idempotent?

1097


Can we use threads in Servlets?

1192


What is the difference between the servlets and cgi programs?

1048


What is servlet initializer?

1035


What is difference between server and servlet?

1142


Describe servlet?

1096


Why is servlet used?

1228


What’s the use of the servlet wrapper classes??

1159


Write a simple servlet program to print the contents of html.

1122


List some life cycle methods of a servlet.

1110


How servlets are deployed in java?

1073


What is Servlets and explain the advantages of Servlet life cycle?

1168


What's the use of servletcontext?

1194


What do you mean by url pattern in servlet?

1161