What are the life-cycle methods of JSP?
-
jspInit()
-
jspService()
-
jspDestroy()
-
jspEnd()
A,B,C
Correct answer
Explanation
JSP has three lifecycle methods: jspInit() is called when the JSP is first initialized (similar to servlet init), jspService() is called for each request (the _jspService method handles the actual processing), and jspDestroy() is called when the JSP is being taken out of service. There is no jspEnd() method in the JSP lifecycle specification.