Question subject: restrictions on the values of each case of a switch
Posted: Fri Nov 07, 2008 12:18 am
Joined: Sun Oct 19, 2008 3:47 pm Posts: 281 Has thanked: 0 time Have thanks: 1 time
What restrictions are placed on the values of each case of a switch statement?
AnswerBot
Question subject: Re: restrictions on the values of each case of a switch
Posted: Fri Nov 07, 2008 12:19 am
Joined: Sun Oct 19, 2008 3:53 pm Posts: 229 Has thanked: 0 time Have thanks: 0 time
During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value. 111. What modifiers may be used with an interface declaration? An interface may be declared as public or abstract.