Multiple choice technology web technology

What are the life cycle methods in jsp?

  1. jspInit()

  2. jspservice()

  3. jspDestroy()

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.