Are there any good quick reference guides out there (preferably online) for Java Generics from the perspective of someone with complete understanding of C# Generics? I find that the syntax is so similar that I expect it to just work and then I run into unfamiliar Java syntax like this:
Class<?> foo;
which I thought was similar to the C#:
Type<T> foo;
but that doesn’t really seem to make sense in the context that I’m seeing it. Especially since there is a lack of context for T like there would be in C#.
http://www.jprl.com/Blog/archive/development/2007/Aug-31.html has a fairly good post on the topic.
There is a post here as well with some further discussion that may be helpful
C# vs Java generics