Can program developed with Java 8 be run on Java 7?

后端 未结 6 1198
后悔当初
后悔当初 2020-11-30 01:04

I am a little confused.

  1. Oracle says Java 8 is highly compatible with Java 7 (backward). But, what possibilities exist that Java 8 program can be run on Java

6条回答
  •  温柔的废话
    2020-11-30 01:45

    Well, there is the -target compiler option, which lets you target the class file format of previous java versions. However, this doesn't fix or detect things such as using classes or methods introduced in JDK APIs after the target version.

提交回复
热议问题