DEVFYI - Developer Resource - FYI

Why is _jspService() method starting with an '_' while other life cycle methods do not?

JSP Interview Questions and Answers


(Continued from previous question...)

56. Why is _jspService() method starting with an '_' while other life cycle methods do not?

_jspService() method will be written by the container hence any methods which are not to be overridden by the end user are typically written starting with an '_'. This is the reason why we don't override _jspService() method in any JSP page.

(Continued on next question...)

Other Interview Questions