Reason: all the data types that can be implicitly converted to int can be used for switch case. Integer is right answer only for java 5 because it allows autoboxing/unboxing. Please correct me if i am wrong
posted 9 years ago
You can't use Integer (Wrapper) in statement as a argument.