Can be call servlet init() methos in destroy(),if yes,then what wil happen
Printable View
Can be call servlet init() methos in destroy(),if yes,then what wil happen
it should throw some exception i guess , as the init() method is called only once during the life cycle of a servlet.
When we call servlet init() methos in destroy(),then the code in the destroy method will be executed as soon as the servlet is loaded.init() method.