While going through Generics in the K&B book, I discovered (or did I rediscover?) that
is legal.
I've worked with
java off and on for years, and I never would have thought this was legal. Thus, when I got
to compile, I was certain I was misunderstanding generics (off to google, followed by a trip to Barnes and Noble, I went).
Is this
featurediscussed in K&B or in other books? Maybe it's me, but it just seems odd that a Class and variable can have the same exact name.