Oracle
1Z0-803 · Question #79
1Z0-803 Question #79: Real Exam Question with Answer & Explanation
The correct answer is D: continue, continue. See the full explanation below for the reasoning.
Question
What should keyword1 and keyword2 be respectively, in oreder to produce output 2345? int [] array = {1,2,3,4,5}; for (int i: array) { if ( i < 2) { keyword1 ; } System.out.println(i); if ( i == 3) { keyword2 ; }}
Options
- Acontinue, break
- Bbreak, break
- Cbreak, continue
- Dcontinue, continue
Community Discussion
No community discussion yet for this question.