0 votes
in JAVA by
What are the main features that JDK has added?

1 Answer

0 votes
by

The following are some of the key features that JDK 7 introduced:

  • A better diamond operator type inference.
  • Adding support for strings in switching and case expressions
  • Try-with-resource or automatic resource management
  • Fourth-Join Framework
  • Use an underline in literal numbers
  • Capability of using a single catch block to catch numerous exceptions
  • Binary literals beginning with "0b"
  • The updated File API and Java NIO 2.0
  • G1 Garbage Collectors 
...