Java 8 (1.8.11 at the time of the writing) is the latest Java version. It was released in March this year and contain various major updates, including the long-waited lambda support. This blog described how to update to JDK 8 on Mac OS and also to check the lambda support with a simple app.
First check your current java version
Open a terminal and type
Then go to Oracle’s Java download page and find the latest Java 8 JDK (java8u11) at the point of this article| | | Next → |