..bits & bytes teleported

Wednesday Jul 23, 2008

The first 4-bytes of a Java class file has 0xCAFEBABE as the signature.

Why CAFEBABE?

Comments:

Every binary needs a "magic" ID to be resolved by the underlying system

fgrep -i java /etc/magic

It's an interesting question why the string CAFEBABE has been used and not JAVA or JAVABYTECODE

Posted by Joost Andrae on July 23, 2008 at 09:20 PM IST #

sounds like an apple system.... cafebabe is used for universal bins

Posted by F. on July 24, 2008 at 04:28 PM IST #

Post a Comment:
Comments are closed for this entry.