Java 8 lambas don't work on Java 6 JRE/JVMs either.
But your code is "futureproof". The spec/language/VM is backward compatible with old code. (In the sense that you can drop in the new version and old code runs.)
But your code is "futureproof". The spec/language/VM is backward compatible with old code. (In the sense that you can drop in the new version and old code runs.)
You mean forward compatible. Which is unlike in Java.
New code (e.g. with ES6 features) doesn't work in older JS engines / browsers -- that's why we have transpilers.