Originally posted by Cay Horstmann:
Well, reflection has been in Java for a very long time (since 1.1 in fact). But generics are definitely a 5.0 feature.
The article http://java.sun.com/developer/technicalArticles/releases/j2se15/
has a nice overview of the new features.
My favorites are generic collections and the "for each" loop:
Will the "for each" loop support to get the key and the value of Map?
Collection<String> temp = h1.values();
Originally posted by Nicholas Cheung:
I just have a question. Does I really need to specify the type of the Collection? How about if the collection contains different types? What should I do for this case?
As you know, in a HashMap, I can put in any objects as the value.
I wrote a brief summary article for Amazon.
Cay, have you also written any technical articles or reviews on Tiger? If so, where could I find them?
You didn't tell me he was so big. Unlike this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton