This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In K&B 6 book page no. - 597 under topic - The Legacy Way to Do Collections, it is written that A non-generic collection is quite happy to hold anything that is NOT a primitive. Whereas the following code works fine.
Please tell me is this an error in the book or I am misunderstanding something?