This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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