Above code indicates that the init() method with no args is called from within the init(ServletConfig) method. If we override the init(ServletConfig) method that takes a ServletConfig then super.init(config) should be the first statement inside that overridden method.
Because the container creates a ServletConfig instance and passes that instance to the init method of the GenericServlet where that config instance is assigned to the local private copy of that class. (private transient ServletConfig
Rishi Can you please let me know where did you find this code snippet? As i am aware that init(ServletConfig) stores this config object for future use, i was wondering that in which instance variable it is storing this as GenericServlet class has no such "private transient ServletConfig config" instance variable (according to J2EE1.4 Java Docs) .