This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

init() method  RSS feed

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In servlet life cycle we have init() method which is used to initialize the resources. Initialization can also be done with the help of a constructor. So why we are not using constructor and having a separate method init for initialization?

Thank You
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!