This post originated from an RSS feed registered with Java Buzz
by Ben Hosking.
Original Post: Java 5 feature articles
Feed Title: A Funny Java Flavoured Look at the World
Feed URL: http://businesslogs.com/WebLog/RSS.xml
Feed Description: The blog looks at using Java and programming in general as it pops up in life as a Java programmer. It will have links to interesting Java articles and resources. It will also have a lot of SCJP Java 1.5 information and links as I am currently studying
I found two articles summarising the new features in Java 1.5. This is decent document and it briefly explains what they all are and what they do. It's a very good introduction to the Java 5 features and are probably useful for people who are just about to start learning for their SCJP 5 Exam (CX-310-055) This list of the topics is of the information in the articles
With the exception of Generics all the new features make programming in Java easier and I think there are some really good features. You wonder why they didn't add them in before.
I really like the Enhanced for Loop, it makes looping through collections much easier and for most scenarios brings about the death of the iterator.
Static imports are a bit of a weird one, I don't think I have ever really written a class where I used a lot of Static classes, to the extent I wished I could import a class to save me typing its name. I actually think its a bit confusing for people looking at code with static imports because it's not obvious you are calling a method on a static class. I'm not a big fan of this one.
Variable-Length arguments (var args) I like this, the ability to have a number of variables of the same type.