Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1051 :

Posted: Sun Jul 13, 2014 5:43 am
by kashyapa
Would like to add another fact to the explanation, that the value of the case label also should be compile time constance. Isn't it Mr. Paul??

Re: About Question enthuware.ocajp.i.v7.2.1051 :

Posted: Sun Jul 13, 2014 7:15 am
by admin
That is correct. Further, you cannot have boolean expression for switch/case either. So it is invalid for that reason as well.
HTH,
Paul.