From the servlet specification (see Servlet FAQ for links), see the bold part:
public void init(ServletConfig config)
throws ServletException Called by the servlet container to indicate to a servlet that the servlet is being
placed into service. See Servlet.init(ServletConfig) .
This implementation stores the ServletConfig object it receives from the
servlet container for later use.When overriding this form of the method, call
Joined: Oct 26, 2008
my program worked!!!
finally it prints, Hello Java!!!
thanks for the servlet spec quote.it helped.