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

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

Renon
Views: 607 | Community Opinion: 1

Tags..  Switch Statement  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Lumas Said..

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






What do you think? Add your opinion/answer
*Name
*your opinion/answer: