http://java.sun.com/developer/techni...2se15langfeat/

Check it out.

My thoughts about it:

I think they have realized their error-prone ways and in a desperate attempt to salvage their lost cause they have tried enhancing Java with C++ "like" features.

The int-enum will soon be gone
Like a foe we've known too long.
With type safe-enum's mighty power
Our foe will bother us no more
They shall die for saying int enums are a foe. Integer enums are like my best friend. I love them.

I do like the fact that they are adding in variable argument lists. That has been something Java has been in need of for a long time now. Generics are nice for typecasting, but they wouldnt be needed if the Java developers had gotten things right the first time around. The new for loop syntax is interesting, however, I think they could have spent the extra development time and just made the foreach loop instead of the new for loop.

Autoboxing/Unboxing is nice, but also I think they are a little late on the draw on it. It wouldnt be needed if the Java developers had gotten things right the first time.

Basically that's how it is with all the features they are adding. They are nice features that should have been included in Java in the first place, but they were left out. No offense to Java, but I think C# is very very slowly winning the war.

[edit]
Since they wrote poems to enhance the visuality of the new language features, I will write my own poem:

Oh Java, Oh Java,
It came too late,
These new features are nice,
But you will soon meet your fate.

[/edit]