There are many notable differences between Java 7 and Java 8.
First is the codename, the code name for Java 7 is Dolphin while the codename for Java 8 is Spider.
Java 7 was released on July 28, 2011, while Java 8 was released on March 18, 2014. Java 7 has JVM support for dynamically typed languages. It is also supported on Windows XP.
Java 8, on the other hand, has Lambda Expressions that is useful in filtering, iteration, and data extraction. This version of Java is not officially supported on Windows XP.
Java 8 also includes enhancement of collections and new security features. It also has an improved type of interference compared to the type Interference for generic instance creation on Java 7.
Java 8 also has a specialized API for manipulation of Date and Time.