Oracle
1Z0-899 · Question #26
What is the result? 1. <% int[] nums = {42,420,4200}; 2. request.setAttribute("foo", nums); %> 3. ${5 + 3 It 6} 4. S(requestScope['foo'][0] ne 10 div0> 5. ${10 div 0}
The correct answer is E. false true Infinity. See the full explanation below for the reasoning.
Question
What is the result? 1. <% int[] nums = {42,420,4200}; 2. request.setAttribute("foo", nums); %> 3. ${5 + 3 It 6} 4. S(requestScope['foo'][0] ne 10 div0> 5. ${10 div 0}
Options
- Atrue true
- Bfalse true
- Cfalse true 0
- Dtrue true Infinity
- Efalse true Infinity
- FAn exception is thrown
- GCompilation or translation fails
How the community answered
(26 responses)- B4% (1)
- E77% (20)
- F8% (2)
- G12% (3)
Community Discussion
No community discussion yet for this question.