Step by step learning
What is the output of this:
int z = 8; switch (z) { case 1: System.out.println("Fall to one"); default: System.out.println("default"); case 3: System.out.println("Fall to three"); case 4: System.out.println("Fall to four"); }
default
Fall to three
Fall to four
Fall to one
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.