📚 Practice Mode
programming languages Online Quiz - 128
Learn at your own pace with hints and detailed explanations
1 / 20
Multiple Choice
What will be printed out if you attempt to compile and run the following code? int i=9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); }
- default
- default, zero
- error default clause not defined
- no output displayed