Hi All,
I have decided to appear for
SCJP 6. And as a first unavoidable step, I have registered to Big Moose Saloon...
First of all, thank you all in advance.
Have one issue with Enum- switch case.
K&B has one example related to switch statement :
Can someone please explain the following:
1. How can we use 'red' directly in case statement without using enum name e.g. Color.red?
2. Why cant we use 'Color.red' in case statement?( It gives compile time error..)
Thanks