hi all
i was trying this free mock exam at jdiscuss.com n came across this question
Which of the follwing
JSP fragments correctly define a method?
1.<% public void m1() { ... } %>
2.<%! public void m1() { ... } %>
3.<%@ public void m1() { ... } %>
4.<%! public void m1() { ... }; %>
5.<% public void m1() { ... }; %>
according to me the correct ans are 1 & 2. But the exam said 2 & 4 to be correct.wht do you all say?