I have a servlet where a cache gets uploaded in init(ServletConfig config)method, due to which the servlet is taking a lot of time at start up, to show up. Would moving this code to init()(without parameters)help? when to use init()(without parameters)method anyway?
You should not override the init(SevrletCofig) method.Instead you should override the init() method. Because the inherited init(ServletConfig) method calls the no-arg init() method, so only one you need to override is the no-arg version.