search

Home  >  Q&A  >  body text

JAVA version problem?

The jre that the program runs on is 1.7, but the jdk specified for compilation is 1.6. Now I want to locate a problem and trace it to the jdk source code. I have to look at the corresponding implementation. But are there any changes in the 1.6 and 1.7 implementations? So which version should I watch?

扔个三星炸死你扔个三星炸死你2725 days ago1083

reply all(2)I'll reply

  • 欧阳克

    欧阳克2017-07-03 11:45:31

    The compilation is 1.6, which means the class file is version 1.6. When running, the virtual machine executes the class file, so you should look at the source code of 1.6

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-03 11:45:31

    Java will not package jdk after it is packaged. For online problems, please contact the online jre.

    reply
    0
  • Cancelreply