Oracle 1Z0-808 Exam question no. 55

Q.- Given the code fragment: 

List<String> lst = Arrays.asList ("EN", "FR",”CH”,”JP”); 
Iterator itr = lst.iterator( ); 
while (itr.hasNext()) { 
           String = itr.next( );
           if (e = "CH") { 
                break; 
           }
      System.out.print (e + " ");
}

What is the result? 

A) EN FR 

B) EN FR JP 

C) CH

D) EN FR CH


⧪ please give your answer in a comment section.

Post a Comment

3 Comments