Java SE 8 Programmer 1Z0–808 Practice Full Test 1
© examsiri.com
Question : 77 of 84
Marks:
+1,
-0
class Test {
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");
}
}What is the result?
Go to Question: