Wednesday, July 13, 2011

Attended webcast of launch of Java 7 last week. A number of evolutionary new features are added by project coin to make Java developers life easy. In addition to them but more exciting step has been taken by opening JVM for dynamic languages. Now languages like Javascript, JRuby, Python and many more can dance within JVM. What a confluence of back-enders and front-enders, static lovers and dynamic lovers! Stage is set for a new paradigm in programming world ...

4. try-with-resources - New try clause syntax where resources can be initialized. These resources get automatically closed for sure after completing try block.

//Java 7try( InputStream in = FileInputStream("src"); OutputStream out = FileOutputStream("dest"); ) {....................}// no need to close in and out in finally block what we generally used to do.

Some more sophisticated features:1. JVM supports dynamic languages like Javascript, JRuby etc. using invokdynamic and call site features.2. New file APIs.3. NIO2 - New IO part two APIs. Support for asynchronous IO has been added.