0% found this document useful (0 votes)
49 views1 page

Java 7 Feature

The document lists the top new features in Java 7 and Java 8. For Java 7, the top features included allowing strings in switch statements, catching multiple exceptions in one block, automatic resource management, the fork/join framework, and type inference with the diamond operator. For Java 8, the top features were lambda expressions, parallel operations, integrating JavaScript via Nashorn, improved date/time APIs, and concurrent accumulators.

Uploaded by

suresh012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Java 7 Feature

The document lists the top new features in Java 7 and Java 8. For Java 7, the top features included allowing strings in switch statements, catching multiple exceptions in one block, automatic resource management, the fork/join framework, and type inference with the diamond operator. For Java 8, the top features were lambda expressions, parallel operations, integrating JavaScript via Nashorn, improved date/time APIs, and concurrent accumulators.

Uploaded by

suresh012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Top 5 new features in Java 7

http://java67.blogspot.in/2012/09/what-is-new-in-java-7-top-5-jdk-7.html

1.
2.
3.
4.
5.

Allow using String in Switch case


Multiple Exception in one catch block
Automatic resource management or ARM blocks
Fork Join framework in Java 7
Diamond operator <> for type inference

Top 5 new features in Java 8


1.
2.
3.
4.
5.

Lambda Expressions
Parallel Operations
Java + JavaScript =
New Date / Time APIs
Concurrent Accumulators

6.

Lambda expression Adds functional processing capability to Java.

7.

Method references Referencing functions by their names instead of invoking


them directly. Using functions as parameter.

8.

Default method Interface to have default method implementation.

9.

New tools New compiler tools and utilities are added like jdeps to figure out
dependencies.

10.

Stream API New stream API to facilitate pipeline processing.

11.

Date Time API Improved date time API.

12.

Optional Emphasis on best practices to handle null values properly.

13.

Nashorn, JavaScript Engine A Java-based engine to execute JavaScript code.

You might also like