Content deleted Content added
No edit summary Tags: Mobile edit Mobile web edit |
Tags: Mobile edit Mobile web edit |
||
Line 52:
Class files are identified by the following 4 [[byte]] [[header (computing)|header]] (in [[hexadecimal]]): <code>CA FE BA BE</code> (the first 4 entries in the table below). The history of this [[Magic number (programming)|magic number]] was explained by [[James Gosling]]:<ref>[http://radio-weblogs.com/0100490/2003/01/28.html James Gosling private communication to Bill Bumgarner]</ref>
<blockquote>
"We used to go to lunch at a place called St Michael's Alley. According to local legend, in the deep dark past, the [[Grateful Dead]] used to perform there before they made it big. It was a pretty funky place that was definitely a Grateful Dead Kinda Place. When [[Jerry Garcia|Jerry]] died, they even put up a little Buddhist-esque shrine. When we used to go there, we referred to the place as Cafe Dead. Somewhere along the line it was noticed that this was a HEX number. I was re-vamping some file format code and needed a couple of [[Magic number (programming)|magic numbers]]: one for the persistent object file, and one for classes. I used CAFEDEAD for the object file format, and in [[grep]]ping for 4 character hex words that fit after "CAFE" (it seemed to be a good
===General layout===
|