12345678910



Question 1: What gets printed when the following JSP code is invoked in a browser. Select the one correct answer.
<%= if(Math.random() < 0.5) %>
hello
<%= } else { %>
hi
<%= } %>

1. The browser will print either hello or hi based upon the return value of random.
2. The string hello will always get printed.
3. The string hi will always get printed.
4. The JSP file will not compile.