title: Comparison between jdk1.6 and jdk1.8 code with Example
body: <p>I would like to understand how jdk1.8 code is, as compared to code of jdk1.6</p>
  
  <p>Can anyone provide an example, or a link??</p>
  
  <p>Thanks</p>
  
  <p>I want to see a comparison between code written in java6 and cod written in java8,</p>
  
  <p>to understand the features of java8 and how it simplifies the code</p>
  
  <p><strong>I just need an example of a program written in java6 , against a program written in java8</strong></p>