Friday, July 13, 2012

Java 7 Features

  1. Binary Literals
  2. Underscores in Numeric Literals
  3. String in switch Statements
  4. Diamond operator(<>) (Type Inference for Generic Instance Creation)
  5. Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods
  6. The try-with-resources statement
  7. Catching Multiple Exception Types and Re throwing Exceptions with Improved Type Checking