Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Same JDK, same Java source file, but generates different class file

I use two different versions of Eclipse (2010 and 2018) to compile a Java source file, but use the same JDK 1.6.0. They generate different class files.

When I compare the two class files, I find they use the same JDK version info at the beginning of the class file, but some bytecode is different at the last part of the file. Why?

enter image description here

Comments