Power to Build

Home » Programming » Java » Have you heard of CAFEBABE, DEADBEEF, DOCFILE0?

Have you heard of CAFEBABE, DEADBEEF, DOCFILE0?

Archives

Have you heard of a magic word CAFE BABE? They are the magic numbers of the Java class files. See below link for the interesting story behind it:

https://dzone.com/articles/the-magic-word-in-java-cafebabe

And the words, CAFE and BABE both actually make up the below hexadecimal numbers:

(CAFEBABE)16 = (3405691582)10

If you wonder why a magical word is needed, it’s a long practice in identifying files. See the wiki postwiki post about this.

DEAD BEEF (actually an hexa decimal number) is the magic word used by Texas Instrument in MAC Addresses.

Oh, the other word in my title, DOCFILE0 is actually a pseudo word = D0CF11E0. That is magic word used in the header of Windows EXE files. See here for more on that.


Comments, please?