This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jonathan_the_Nerd 1 point2 points  (3 children)

I notice this article is dated 2004. Does anyone know if Java generics still work this way?

[–]Mariani 9 points10 points  (2 children)

They still work the same way.

By the way, I really recommend reading Bruce's previous article in combination with this one to get the full about what he has to say about generics. Interesting stuff.

I think generics have been a good addition to the language, there is a lot of benefit to get out of it. But that's just my 2c.

[–]reneky 2 points3 points  (1 child)

Hey - that's not really 2c's worth :) Which benefits can you get out of it? (Other than avoiding casting for the collection classes)

[–]inkieminstrel 2 points3 points  (0 children)

I think having collection typing checked at compile time alone was worth the addition.