The following types can be used as a switch variable: byte, char, short, int, String, and enums. Note that long, float, double, and boolean are not allowed.
All the case constants should be assignable to the switch variable type. i.e. had there been a case label of 128 ( case 128 : //some code), it would not have compiled. Because the range of a byte is from -128 to 127 and so 128 is not assignable to 'x'.
The interval value of 'b' is 98, which is less than 127 so Line //1 is fine.
Note: Although it is not required for the exam to know the integral values of characters, it is good to know that all English letters (upper case as well as lower case) as well as 0-9 are below 127 and so are assignable to byte.