Although I knew about the small language enhancements going into JDK7, named Project Coin, quite some time back it was only today that I got around to actually coding and trying them all out primarily due to prior laziness and poor editor support. Yes I know – there’s plenty of docs on Project Coin out there already. This is mine.
And now that JDK7 actually has a finite number of steps in its release schedule and is scheduled for release on 28/07/2011 we know our efforts in learning the new feature set are not going to waste and that very soon we’ll be able to write production code with this knowledge to make the industry a better place which is ultimately what is important.
Here I present a quick primer for the uninitiated. The small language enhancements going into JDK7 are as follows.
And now that JDK7 actually has a finite number of steps in its release schedule and is scheduled for release on 28/07/2011 we know our efforts in learning the new feature set are not going to waste and that very soon we’ll be able to write production code with this knowledge to make the industry a better place which is ultimately what is important.
Here I present a quick primer for the uninitiated. The small language enhancements going into JDK7 are as follows.
- Strings in switch
- Binary integral literals
- Underscores in numeric literals
- Multi-catch and more precise rethrow
- Improved type inference for generic instance creation(diamond)
try
-with-resources statement- Simplified varargs method invocation
Compiling Java 7
- Download JDK7. I used OpenJDK OS X Build on my Mac.
- Download Netbeans 7 Or Intellij 10.5.
No comments:
Post a Comment