init() is given for the developer purpose and init(ServletConfig sc) is for the web container purpose.
How can you say that init() is for development purpose and init(ServletConfig sc) is for container purpose ? Can you explain it ?
init(ServletConfig sc) will be called internally by the container so that what information we configured using the
init() is written inside the init(ServletConfig sc) method that means we can override and write the code to be executed at the time of initializing the ServletConfig object by the Container.
**init( ServletConfig sc) {
this.config=config;
init() ;
}**