Possible Duplicate:
What new features in java 7 do you find most useful?
What are some features that you like in the next version of Java?
Possible Duplicate:
What new features in java 7 do you find most useful?
What are some features that you like in the next version of Java?
I'm looking forward to a decent date and time API being in the core libraries, so there's no excuse to use Date
and Calendar
any more (other than backward compatibility). Admittedly that's a library feature rather than language.
If the resource disposal feature gets in there - the equivalent of C#'s using
statement - that will be really handy. Admittedly I'd really like closures in there as well, but introducing closures into Java is complicated by checked exceptions :(
Since closures will -- as far as I know -- not be in Java 7, I'm not particularly interested in Java 7, anymore. I will probably use more alternative languages on the JVM like Scala or JRuby.
However, some Project Coin enhancements are nice (see also), e.g.
Edit: It should be noted that some kind of closures will be in Java 7 (should it ever be released)
I do lots of IO work, so NIO2 is something I am looking forward too. From the JSR:
Secondly, there are two things to reduce Java's verbosity that I'm looking forward to, albeit the later is almost trivial. Regardless, both will help make Java slightly more terse.
Simplified Generics are high on my happy list. Throw in modifiers and larger class names and these lines of code can get borderline unreadable.
Map<String, List<BigDecimal>> numberMap = new TreeMap<String, List<BigDecimal>>();
...becomes...
Map<String, List<BigDecimal>> numberMap = new TreeMap<>();
java.util.programmer :) more productivity for programmer, modularity and independent.