Oracle
1Z0-803 · Question #25
Given: What is the result?
The correct answer is B. 0. table.length is 3. So the do-while loop will run 3 times with ii=0, ii=1 and ii=2. The second while statement will break the do-loop when ii = 3. Note:The Java programming language provides ado-whilestatement, which can be expressed as } while (expression);
Using Operators and Decision Constructs
Question
Given:
What is the result?
Exhibit
Options
- A0
- B0
- C0
- DCompilation fails
How the community answered
(26 responses)- A12% (3)
- B81% (21)
- C4% (1)
- D4% (1)
Explanation
table.length is 3. So the do-while loop will run 3 times with ii=0, ii=1 and ii=2. The second while statement will break the do-loop when ii = 3. Note:The Java programming language provides ado-whilestatement, which can be expressed as } while (expression);
Topics
#operators#expression evaluation#type conversion
Community Discussion
No community discussion yet for this question.
