A case constant must evaluate to the same type as the switch expression can
use, with one additional�and big�constraint: the case constant must be a
compile time constant! Since the case argument has to be resolved at compile
time, that means you can use only a constant or final variable that is assigned a literal value. It is not enough to be final, it must be a compile time constant. For example:
Can anyone please explain me the sentence and why it is giving compile error for case b. Please ranchers...