![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
char, byte, and short are always promoted to int type whenever necessary. The requirement of case expression is that it must be a compile-time integer constant. So, char can be used without any problem as an expression in case block within switch statement. Thanx Replies: |
Sponsored Links
|