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
Joined: Sep 30, 2006
You can't use Integer (Wrapper) in statement as a argument.