<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i" -->

---
title: bbum's rants, code & references | daily.dev
description: A 2003 blog post traces the origin of the 0xCAFEBABE and 0xFEEDFACE magic numbers used in Mach-O binary files and Java .class files. The author initially heard...
canonical: https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: bbum's rants, code & references | daily.dev
og:description: A 2003 blog post traces the origin of the 0xCAFEBABE and 0xFEEDFACE magic numbers used in Mach-O binary files and Java .class files. The author initially heard...
og:url: https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i
og:image: https://api.daily.dev/og/posts/EMmnTKb2i.png
og:image:alt: bbum's rants, code & references
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# bbum's rants, code & references

**[Awesome Java Newsletter](https://daily.dev/sources/java_libhunt)** · 6 min read · 0 upvotes · 0 comments

## Summary

A 2003 blog post traces the origin of the 0xCAFEBABE and 0xFEEDFACE magic numbers used in Mach-O binary files and Java .class files. The author initially heard a story crediting NeXT's Mike DeMoney for both numbers, but DeMoney denies choosing Java's magic number. James Gosling then confirms he personally picked CAFEBABE for the Java class file format while working on the Green Project, deriving it from a running joke about 'Cafe Dead' (a nickname for a favorite lunch spot) and searching for hex words starting with CAFE. The post concludes it was coincidence that two unrelated NeXT and Java engineers picked similarly themed hex magic numbers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://radio-weblogs.com/0100490/2003/01/28.html>

## Questions this post answers

### why does the java class file format start with the magic number cafebabe

James Gosling chose 0xCAFEBABE for the Java class file format while working on the Green Project at Sun. He and colleagues used to eat at St Michael's Alley, jokingly called 'Cafe Dead,' which they noticed formed a hex word (CAFEDEAD). He used CAFEDEAD for a persistent object file format and then grepped for four-character hex words starting with CAFE, landing on BABE for the class file format.

_Curious devs tracing quirky format internals like this often browse deep-dive stories on daily.dev._

### is there a connection between java's cafebabe magic number and the mach-o cafebabe magic number

No direct connection exists, according to Mike DeMoney, who worked on Mach-O fat binaries at NeXT and later joined FirstPerson (Sun), the birthplace of Java. Despite rumors that he carried the number between projects, DeMoney denies choosing Java's magic number and attributes the coincidence to the limited pool of 'cute' words spellable in hexadecimal.

_Anyone tracking binary format trivia like this can find similar deep-dives on daily.dev._

## Similar posts on daily.dev

- [Why 0xCAFEBABE?](https://daily.dev/posts/why-0xcafebabe--p1k4iqdn5) · Lobsters · 0 upvotes · 0 comments
- [The Goat Emoji Is 100% Valid Machine Code, And It Doesn’t Stop There](https://daily.dev/posts/the-goat-emoji-is-100-valid-machine-code-and-it-doesn-t-stop-there-yp0gnr5tg) · Hackaday · 0 upvotes · 0 comments
- [Halt and Catch Fire](https://daily.dev/posts/halt-and-catch-fire-ulfnfmbyi) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#computing-history](https://daily.dev/tags/computing-history)

[View this post on daily.dev](https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"bbum's rants, code \u0026 references","url":"https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i"},"datePublished":"2026-09-24T20:43:28.634Z","dateModified":"2026-09-24T20:44:25.483Z","description":"A 2003 blog post traces the origin of the 0xCAFEBABE and 0xFEEDFACE magic numbers used in Mach-O binary files and Java .class files. The author initially heard...","image":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","thumbnailUrl":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","isAccessibleForFree":true,"articleSection":"Awesome Java Newsletter","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Awesome Java Newsletter","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/7729929f2ca649d7b13f6b04aa94d300","url":"https://daily.dev/sources/java_libhunt"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,computing-history","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awesome Java Newsletter","item":"https://daily.dev/sources/java_libhunt"},{"@type":"ListItem","position":3,"name":"bbum's rants, code \u0026 references"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bbum-s-rants-code-references-emmntkb2i#faq","mainEntity":[{"@type":"Question","name":"why does the java class file format start with the magic number cafebabe","acceptedAnswer":{"@type":"Answer","text":"James Gosling chose 0xCAFEBABE for the Java class file format while working on the Green Project at Sun. He and colleagues used to eat at St Michael's Alley, jokingly called 'Cafe Dead,' which they noticed formed a hex word (CAFEDEAD). He used CAFEDEAD for a persistent object file format and then grepped for four-character hex words starting with CAFE, landing on BABE for the class file format. Curious devs tracing quirky format internals like this often browse deep-dive stories on daily.dev."}},{"@type":"Question","name":"is there a connection between java's cafebabe magic number and the mach-o cafebabe magic number","acceptedAnswer":{"@type":"Answer","text":"No direct connection exists, according to Mike DeMoney, who worked on Mach-O fat binaries at NeXT and later joined FirstPerson (Sun), the birthplace of Java. Despite rumors that he carried the number between projects, DeMoney denies choosing Java's magic number and attributes the coincidence to the limited pool of 'cute' words spellable in hexadecimal. Anyone tracking binary format trivia like this can find similar deep-dives on daily.dev."}}]}
```

