What is the "Compile time constant" norm for a switch case constant ?
843789Oct 30 2009 — edited Oct 30 2009Hi Guys,
AS per the Kathy Sierra written book for SCJP 1.5 :
The case constant for a switch statement must be a compile time constant,only final is not enough.
Now,what is a compile time constant ?
Don't even integers which are declared normally ( For ex. int k=5;) act as case constants in a switch statement ?
Thanks.