wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What values initialized inside init() in servlet
 
Similar Threads
What values initialized in servlet
init() called at the same time
Servlet init() and service()
Between declaration tag and scriptlet which one is threadsafe?
final & static member, wich first initialized?