Monday, June 11, 2012

What is Java class file's magic number?

A Magic Number of a class file is a unique identifier for tools to quickly differentiateclass files from non class files. The first four bytes of each Java class file has the magicvalue as 0xCAFEBABE.And the answer to why this number, I do not actually know butthere may be very few sensible and acceptable options possible constructed from lettersA-F which can surely not be 'CAFEFACE' or 'FADECAFE'....

No comments:

Post a Comment