• Post Reply Bookmark Topic Watch Topic
  • New Topic

init() and init(Servlet Config)

 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know what method does container call first i.e whether init() or init(ServletConfig) ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container can only call one of these methods directly. Do you know which one, and why? The javadocs of Servlet and GenericServlet are helpful reading in trying to answer this.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!