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 are the jobs performed by servlets?

1025


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

988


What is servlet and list its types?

1028


When servlet is loaded?

1041


What is the structure of the http response

1132


What's the servlet interface?

1054


Explain the war file?

1027


Where do you define dispatcherservlet?

1006


How servlet is created?

1148


Why don't we write a constructor in a servlet?

1008


What is servlet and how it works?

940


How do you get the ip address of the client in servlet?

977


How do you design microservices?

1038


What do you mean by filter in servlet?

962


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

1068