Oracle 1Z0-808 Exam question no. 39

Q.- Given the code fragment: 

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? 

A) Compilation fails. 

B) O Found 

C) 3 Found 

D) 1 Found 



⧪ please give your answer in a comment section. 

Post a Comment

3 Comments