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
Customer Requirements for Developers
this week in the
Developer Certification (SCJD/OCMJD)
Any need to use generics if using java 1.5
Joined: May 12, 2004
Feb 22, 2006 12:49:00
I am doing my assignment in
1.5, for the features it provides, and also because I am not getting time to work on the assignment, so I could slip.
Any need to use generics if using java 1.5.
Joined: Feb 07, 2005
Feb 22, 2006 14:10:00
No it's not mandatory. You will get a compile-time warning if you use a Collection but don't specify what's in the Collection. But you can still compile.
Joined: Dec 09, 2003
Mar 02, 2006 10:43:00
I would recommend using Generics if you are using 1.5. Yes, it is a little more work(if you are currently not using Generics), but it is also a way of letting the compiler catch your bugs for you
[ March 02, 2006: Message edited by: Lara McCarver ]
I agree. Here's the link:
subject: Any need to use generics if using java 1.5
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015