• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt from pg 151 of HFSJ

 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone
on pg no 151 there is a questions whose answer mentions abt the 2 versions of init() method of GenericServlet class. I cudnt understand it...can anyone help me???
 
Nishant Dhar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GenericServlet inherits one method from the Servlet interace : init(ServletConfig)
It also adds one method of its own : init()

The first method init(ServletConfig)is always called first.
This method calls init()
The no - arg init() method is the one whcih we generally over-ride and do our initialization work

hope this helps !!!
 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nishant thanks for the reply. I understood it.
 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nishant thanks for the reply. I understood it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic