Saturday, April 13, 2019

New features in java 7

1. What are the new features in java 7 ?

  • Binary Literals.
  • Strings in switch Statement.
  • Try with Resources : Try with Resources or ARM (Automatic Resource Management)
  • Catching multiple exception in one catch block (Multiple Exception Handling )
  • Suppressed Exceptions.
  • underscore in literals.
  • Diamond Operator : Type Inference for Generic Instance Creation using Diamond Syntax.
  • java.nio.file package
  • Suppressed Exceptions
  • underscore in literals

1 comment: