

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the program?
for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.print("two "); case 3: System.out.print("three "); } } System.out.println("done"); |
A. | Done |
B. | One two done |
C. | One two three done |
D. | One two three two three done |
Answer» E. | |