In the latest stable release of Java and Eclipse (Kempler), entering the following code and executing it, assuming the package and class names exist:
package
When you don't put a break the switch will execute all other cases that are underneath the entry point
break
So it actually executes
x = 2; x = 3; x++; print(x); System.out.println(x);
Tks to Pshemo here is a link to the specification of the switch statement