Java 7 new features

JavaSE 7 (July 28, 2011)

Codename Dolphin. This was first version after Oracle acquired Sun Microsystems. Main features include:
  • String in switch-case
  • Automatic resource management in try-statement.
  • Allowing underscore in numeric literals.
  • Diamond ( <> ) operator
  • Simplified varargs method declaration