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...

Can we call destroy() method inside the init() method? What
happens when we do so?

Answer Posted / poorna chandar rao.yerrabothu

if suppose we take the servlet programming side then
whenever u type the URL first web browser call the service
method then create the servlet object then call the
init()method whenever we call the init method start the
proceesses of the particular object operation suppose we
call the destroy()method before completion of the particular
object operation servelet object is removed then when we r
call the service method then create the servelet object

Is This Answer Correct ?    11 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we translate jsp?

1034


How to get the server information in a servlet?

1148


Which exception is thrown if the servlet is not initialized properly?

1007


What are the uses of servlet and what is servlet chaining?

1078


Is servlet a framework?

1017


What is Request Dispatcher?

1412


What is the difference between context parameter and context attribute?

1021


What is the difference between Server and Container?

1231


Explain Action Servlet?

1063


What are the disadvantages of storing session state in cookies?

1133


Whats the advantages using servlets over using CGI?

1053


How does java thread pool work?

1059


What if we pass negative value in load-on-startup?

1265


Explain the working of service() method of a servlet.

945


Explain the methods of request dispatcher in servlet?

1020