Monday, 13 February 2012

What restrictions are placed on the values of each case of a switch statement? | Core Java

During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.