Given the following contents of a
JSP page what will happen when you
attempt to compile and run it?
<%
int i = 1;
int j =2;
%>
${i < j}
${1 lt 2}
Choose one answer.
a. Compilation error Incorrect
b. output of true true Incorrect
c. output of null true Incorrect
d. output of false true Correct -answer
e. output of true false Incorrect
-The variables i and j are not visible to the EL expression and are thus ignored. The EL expression does not output null.
-I answered "b" which is wrong. How the "d" is the correct answer. Please clear my doubt.