• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!