Wednesday, July 13, 2011

Java 7

Last week was the release of Java 7 and how Mark Reinhold mention it in the presentation the most significant thing is that is finally out, because is the first new version of Java in five years, and the first since Oracle took over Sun. This is not a revolutionary release is more as a evolutionary release, here is a list of some of the new features available:
  • Strings in switch
  • Automatic Resource Management
  • Improved Type Inference for Generic Instance Creation (diamond)
  • Simplified Varargs Method Invocation
  • VM support for non-Java languages (InvokeDynamic)
  • Annotations on Java types
  • A New File System API
Even though I only listed a few features there is a lot more new stuff in this release. I personally like the automatic resource management because this will make your code more clear and smaller and what I think is more important it will give you a more concise error handling. Also the new file system API have a lot of new interesting features like the Watch Service. So, what are you wating for? download it now and start playing with it.

No comments:

Post a Comment