Tuesday, March 10, 2009

What restrictions are placed on the values of each case of a switch

Question :What restrictions are placed on the values of each case of a switch
statement? (CoreJava)

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

No comments: