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

What is the servlet?

1094


How can the referrer and the target urls be used in servlet?

1011


What is the servletconfig object?

1048


What is the major difference between context parameter and context attribute?

1121


How can we achieve transport layer security for our web application?

1041


How the typical servlet code look like ?

1242


What is servlet name in web xml?

996


What do you mean by cgi in servlet?

1082


When jsessionid is created?

1055


Can we fetch the attributes related to a servlet on a different servlet?

1148


Explain servlet events?

1021


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


What is called servlet container?

1098


What must be implemented by all servlets?

1104


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

1046