What are the life cycle methods in jsp?
-
jspInit()
-
jspservice()
-
jspDestroy()
-
All of the above
D
Correct answer
Explanation
JSP has three life cycle methods: jspInit() is called when the JSP is initialized, _jspService() handles each request (the option has a minor typo omitting the underscore), and jspDestroy() is called when the JSP is taken out of service. All three methods are part of the JSP life cycle.