Are compiled Java 8 lambda expressions backwards compatible with earlier versions of the Java runtime?

后端 未结 4 1273
囚心锁ツ
囚心锁ツ 2020-12-16 15:45

In order to reduce the clutter caused by numerous instantiations of anonymous types, I\'m exploring the possibility of leveraging Java 8 lambdas.

One important cons

4条回答
  •  清酒与你
    2020-12-16 16:15

    In general it is not possible to have Javac compiler use a source level that is higher than the target JVM level. Thus the answer is NO.

提交回复
热议问题