java 1.8 versus java 1.7 Compatibility Issue

java

Solution

The existing piece of code will (ipso facto) not be using any new features of Java 8. If you have a piece of code which works1 on Java version v, it will also work on all other versions v' > v. That is the long-standing promise of the Java platform.

1 By "works" I mean "works as specified, using non-deprecated official JDK APIs".

Problem

I am using `Java 1.7` in my code, now i want to replace `JAVA 1.7` to `JAVA 1.8`.Is `Java 1.8` compatible to `Java 1.7`. ? Will it work as it before. i mean, all new features of Java 1.8 can be used in the existing piece of code?

Original source

Related problems