Saturday 21 December 2013

How to know the .class is complied by which jdk version?

In a compiled class (.class file) we see is “ca fe ba be”. This is the java magic number which says that this is a java binary class file. It is immediately followed by minor_version and then major_version.

Sample hex view of a java binary class:
ca fe ba be 00 00 00 32 ...

No comments:

Post a Comment