Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What are the restrictions placed on the values of each case of a switch statement?
The restrictions placed on the values of each case of a switch statement are :

    * The values of each case of a switch statement must be a compile time constant.
    * Only use the values that can be promoted to an int value, i.e. use byte, short, char, int only.