This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.