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
in your code if a is not equal to 0 b will never be initialized. you should define b before the switch statement.