简体   繁体   中英

Compilation of same Java Files

是否可以从不同的系统编译2个相同的Java文件,但是它们都具有相同的操作系统(Windows 7),它们会生成不同的.class文件(大小)?

Yes, you can check if there are different versions of the JDK (Java Development Kit) used to compile your code and the .class file version (differs from java versions)

You can check differences using the javap utility:

javap -verbose path/to/ClassFile.class

and compare output of each class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM