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 / tulasi vani

The servlet life cycle included init() and destroy()(Small
d).

init() is called at the beginning of the servlet,it
performs certain one time activities which are required
during the lifetime of the servlet.It may be some
initialisation of variables or a database connection.

destroy() is called to destroy the servlet.Various
resources which are held by the servlet will be
released,database connections which were opened will be
closed.Later the servlet is destroyed.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the servlet context.

1067


How httpservlet is different from the genericservlet?

1067


Why do we have servlet wrapper classes?

1012


How to get the path of servlet in the server?

948


What is Servlet API used for connecting database?

1049


What is the difference between get and post methods?

985


What are advantages of servlets over cgi?

1049


What are different ways for servlet authentication?

1048


What is meant by a web application

970


Why is httpservlet declared abstract?

1061


What is difference between server and servlet?

1037


Explain the features are in servlet 3?

1017


What are the types of servlets? Explain

1198


How can you push data from an Applet to a Servlet?

1035


What is the purpose of requestdispatcher interface?

1004