<%request.setAttribute("Two","2");
Integer One = new Integer(1);%>
${One + 1}
${Two}
${Two + 1}
Choose one answer.
A. 1 2 3
B. 2 2 3
C. 1 1
D. 1 null 1
Answer A. I think the answer should be B because ${One + 1} should output 2 since EL would automatically unbox One to be 1.
Answer A is correct. Because There is no attribute called "One" in any of the scope (Request, Session, Application, Page) . so EL treats the One is 0 by default for the Arithmetic calculation.
Answer B would be correct if the code look like below,
<%request.setAttribute("Two","2");
Integer One = new Integer(1);
request.setAttribute("One",One); %>