Hi guys,
Could you please help me out ?
Question :
What will be the result of accessing a
JSP page containing this code using the URI /test/a.jsp?intValue=3
a) Prints 3
b) Prints 0
c) Does not compile
d) Throws an exception
I thought this code would not compile because Integer class does not have a default no-args constructor as required by <jsp:useBean> element.
But according to WhizLabs, this code would throw a InstantiationException.
Am I wrong ?
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself