jacob deiter wrote:
in some scenariop init method also contains super() ,then what it does here??
Wrong . init() method doesnt have super() . super() calls the super class default constructor . compilar put the super() at the first statement of the constructor implicitly. you cant call super() from methods . but you can call super class method from your sub class method using super.methodSuper(). so you probably saw the super.init(config); from
public void init(ServletConfig config)
Hope This Helps
subject: in simple servlet ,why a constructor has super()?.