Hi
Could you confirm the answer?
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() { ... }; %>
Answer: 2 & 4
Isn't 2 a wrong answer since each variable declaration statement must be terminated with a semicolon.
Thanks
Ravi
SCJP, SCJD, SCWCD, SCBCD, SCEA