Thursday, September 15, 2011

New Features in Java version 7

The new release of Java 7 introduced exciting new features in the language; following is the list of these features:

  • Strings in the Switch Statement
For details please visit: http://download.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html
  • Type Inference for Generic Instance Creation (diamond symbol <>)
For details please visit:
http://download.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
  • The try-with-resources Statement
For details please visit:
http://download.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html

  • Catching multiple Exception Types and Rethrowing Exception with Improved Type Checking
For details please visit:
http://download.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html
  • Enhancements in Java I/O (new package named java.nio)
For details please visit:
http://download.oracle.com/javase/7/docs/technotes/guides/io/enhancements.html#7
http://download.oracle.com/javase/tutorial/essential/io/notification.html

  • Java Virtual Machine Support for Non-Java Languages
For details please visit:
http://download.oracle.com/javase/7/docs/technotes/guides/vm/multiple-language-support.html

  • JLayer Pane to Decorate Components with JLayer Class
For details please visit:
http://download.oracle.com/javase/tutorial/uiswing/misc/jlayer.html

No comments: