If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

Submitted by: Administrator
It will give compilation error. In order to define a method
in JSP, it should be defined in the JSP declarations <%!..%
>, and it can be called in the JSP expression.
On translation, the method will be added outside all
methods in the servlet class.
Submitted by: Administrator

Read Online Advanced Java Job Interview Questions And Answers