How does the Java compiler handle the following switch block ? What is the scope of the \'b\' variable ?
Note that the \'b\' variable is declared only in the first b
Your case blocks do not have any local scope. It's not a series of if...else if...else blocks, java implements it as a series of GOTOs.
case
if
else if
else
GOTO