What are the the new features in J2SE 7 or java 1.7 ?
Java SE 7
Java 7 (codename Dolphin) is a major update that was launched on July 7, 2011 and was made available for developers on July 28, 2011.
The development period was organized into thirteen milestones.
Java 7 include:
- Strings in switch
- Concurrency utilities
- Automatic resource management in try-statement
- Improved type inference for generic instance creation, aka the diamond operator <>
- Simplified varargs method declaration
- Allowing underscores in numeric literals
- Binary integer literals
- Catching multiple exception types and rethrowing exceptions with improved type checking
- Timsort is used to sort collections and arrays of objects instead of merge sort
- New file I/O library adding support for multiple file systems, file metadata and symbolic links. The new packages are java.nio.file, java.nio.file.attribute and java.nio.file.spi
- Library-level support for elliptic curve cryptography algorithms
- An XRender pipeline for Java 2D, which improves handling of features specific to modern GPUs
- New platform APIs for the graphics features
- Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol
- Java Deployment Rulesets
- Lambda (Java’s implementation of lambda functions)
- Upstream updates to XML and Unicode
Java 7 was the default version to download on java.com from April 2012 until Java 8 was released.