Java 7: New Language Features

There’s been talk of major changes in the Java 7 release (mostly about the inclusion of closures), but there are some smaller syntactic changes that look like they’ll be helpful for your everyday dev.  Here are some highlights from another tech blog:

1. Language support for collections – more PHP-like syntax for creating and manipulating collections (maps, arrays, sets, etc).

2. Automatic Resource Management – automatic closing of resources (FileBuffers, DB connections, etc) that are contained in a try block.

3. Strings in switch — no more need for long if/else if blocks for string matching.

Java 7 isn’t scheduled to be released until September 2010.

Leave a Reply