Multiple choice technology programming languages

Which statements concerning JSPs are true?

  1. Both jspInit() and jspDestroy can be overridden

  2. Only jspInit() can be overridden

  3. Only jspDestroy() can be overridden

  4. Only _jspService can be overridden

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Both jspInit() and jspDestroy() are JSP lifecycle methods that can be overridden to customize initialization and cleanup behavior. The _jspService method cannot be overridden as it's auto-generated by the container.