Comparison between jdk1.6 and jdk1.8 code with Example

N V picture N V · Dec 30, 2016 · Viewed 10.6k times · Source

I would like to understand how jdk1.8 code is, as compared to code of jdk1.6

Can anyone provide an example, or a link??

Thanks

I want to see a comparison between code written in java6 and cod written in java8,

to understand the features of java8 and how it simplifies the code

I just need an example of a program written in java6 , against a program written in java8

Answer

Ratha picture Ratha · Jan 2, 2017

The below link will help you understand how Java8 feature 'Lambda Expression' simplifies the code.

Java8 Lambda Expression - The What and Why