Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Any need to use generics if using java 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Any need to use generics if using java 1.5" Watch "Any need to use generics if using java 1.5" New topic
Author

Any need to use generics if using java 1.5

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
I am doing my assignment in java 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.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
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.
Lara McCarver
Ranch Hand

Joined: Dec 09, 2003
Posts: 118
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: http://aspose.com/file-tools
 
subject: Any need to use generics if using java 1.5
 
Similar Threads
Generics
generics
Generics
Generics