This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes What values initialized inside init() in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What values initialized inside init() in servlet" Watch "What values initialized inside init() in servlet" New topic
Author

What values initialized inside init() in servlet

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
A question which can easily be answered by study of the Servlet API.

Start at this page to find essential documentation which all servlet programmer should be VERY familiar with.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What values initialized inside init() in servlet