Question: public class DoBreak1 { public static void main(String[] args) { String[] table = {aa, bb, cc, dd}; for (String ss: table) { if ( bb.equals(ss))

public class DoBreak1 { public static void main(String[] args) { String[] table = {"aa", "bb", "cc", "dd"}; for (String ss: table) { if ( "bb".equals(ss)) { continue; } System.out.println(ss); if ( "cc".equals(ss)) { break; } } } } What is the result? a. aa, cc b. aa, bb, cc c. cc, dd d. cc e. Compilation fails

**I know the answer is aa, cc - but I don't understand why**

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!