The JSP lifecycle methods are as following:

  • jspInit() : It operates to initialize the servlet instance. Before calling any other method, its call is made.
  • _jspService() : It passes the request and the response subjects. You can’t override the method.
  • jspDestroy(): The container calls this when its instance is about to destroy.
BY Best Interview Question ON 18 Jan 2019