exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 112 discussion

Actual exam question from Oracle's 1z0-808
Question #: 112
Topic #: 1
[All 1z0-808 Questions]

Given the code fragment:

What is the result?

  • A. Compilation fails.
  • B. 0 Found
  • C. 1 Found
  • D. 3 Found
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NabilBenAsker
6 months, 4 weeks ago
Selected Answer: A
never be reached
upvoted 1 times
...
akbiyik
1 year, 2 months ago
Selected Answer: A
count ++ is unreachable statement. Compilation error.
upvoted 2 times
...
eilla
1 year, 2 months ago
This produces error: unreachable statement count ++; count++ can never be reached because continue always moves to the next loop iteration
upvoted 1 times
...
iSnover
1 year, 3 months ago
Selected Answer: A
Answer A is correct, I tested: public static void main(String[] args) { int data [] = {2010, 2013, 2014, 2015, 2014}; int key = 2014; int count = 0; for (int e: data) { if (e != key) { continue; count ++; } } System.out.print(count + " Found"); }
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago