File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
what is main advantage of generics in 1.5
Joined: Jul 30, 2009
Jul 30, 2009 21:50:06
Please tell me generics advantage in
Joined: Feb 23, 2009
Jul 30, 2009 22:07:52
It comes down to type safety.
Prior to Java 5 and generics, you could place any type of Object in a List, Map, etc.
This resulted in a lot of casting and error prone code.
Generics lets you tell the Map that only objects of type MyFancyObject go into the Map, nothing else, end of story.
An easy to use, light-weight JDBC framework
Joined: Oct 27, 2005
Jul 31, 2009 00:47:29
Moving to Beginning Java.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Apr 12, 2009
Jul 31, 2009 04:57:55
rocket mass heater
subject: what is main advantage of generics in 1.5
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014