Reputation: 131
Can 2 same java file complied from different system but both of them having same Operating system(Windows 7), will generate different .class file(in Size)?
Upvotes: 0
Views: 39
Reputation: 4350
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
Upvotes: 1