The release of SDK 1.3 did not change the way the switch statement works. All of the case values in the example:
public void switchTest(byte x){
switch(x){
case 'b': //1
default : //2
case -2: //3
case 80: //4
}
}
are in the legal -128 to 127 range for byte.
(If that was a type char, it should not compile since char can't hold the value -2)
Questions are based on the language specification and the standard library classes for the Java 2 Platform, not any specific release. IF there is a conflict between the JLS and what you observe a particular compiler/JVM allowing, go with the JLS!
For example, I have heard that you can get a main method to work even if it is declared:
protected static void main(
String[] args)
BUT that is NOT the way to answer a question about the declaration of main on the test.
Bill