A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Why Generics and not 'Specifics'
Joined: Mar 08, 2005
Oct 07, 2009 07:00:01
Probably missing something really obvious here but with the introduction of Generics the compiler can see a collection is intended to hold a Specific object.. not a Generic object..
> is 'Specific'ally a list of Strings.. but List on its own is a generic list... can hold any object....
It seems backwards to me, but as I said I'm sure I'm missing something obivous !!
Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out
Joined: Mar 05, 2008
Oct 08, 2009 01:05:09
I talked about this a bit just the other day in my third post
I agree. Here's the link:
subject: Why Generics and not 'Specifics'
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014