--- title: "Which came first, Java or Twitter?" description: "Java vs Twitter: Java came first, by 11 years — 1995 against 2006. What happened in each case, and why the dates are often given differently." url: https://atoneplace.net/which-came-first/java-vs-twitter/ site: "At One Place" --- # Which came first, Java or Twitter? **Which came first, Java or Twitter?: Java** 1995 — 11 years before Twitter Java came first, by 11 years. Sun Microsystems announced Java publicly. ## Side by side | | Java | Twitter | | --- | --- | --- | | Year | 1995 | 2006 | | Date | 1995-05-23 | 2006-03-21 | | Category | technology | technology | | What happened | Sun Microsystems announced Java publicly. | Jack Dorsey posted the first tweet. | ## Java Java was announced in May 1995, having started in 1991 as a project called Oak aimed at interactive television — a market that did not exist yet. Its promise was "write once, run anywhere", achieved by compiling to bytecode for a virtual machine rather than to a specific processor. JavaScript arrived seven months later and was named after it purely as a marketing decision; the two languages are unrelated. ## Twitter The first tweet — "just setting up my twttr" — went out on 21 March 2006, and the service opened publicly that July. The 140-character limit came from SMS: a text message allows 160 characters and 20 were reserved for the username. When the limit doubled to 280 in 2017 the SMS constraint had been irrelevant for years. ## Common questions ### Which came first, Java or Twitter? Java, by 11 years — 1995 against 2006. ### When did Java start? 1995. Sun Microsystems announced Java publicly. ### When did Twitter start? 2006. Jack Dorsey posted the first tweet. ## Related pages - [Apple or Java?](https://atoneplace.net/which-came-first/apple-vs-java/) - [the internet (ARPANET) or Java?](https://atoneplace.net/which-came-first/arpanet-vs-java/) - [the internet (ARPANET) or Twitter?](https://atoneplace.net/which-came-first/arpanet-vs-twitter/) - [email or Java?](https://atoneplace.net/which-came-first/email-vs-java/) - [email or Twitter?](https://atoneplace.net/which-came-first/email-vs-twitter/) - [the Macintosh or Twitter?](https://atoneplace.net/which-came-first/macintosh-vs-twitter/) - [Python or Twitter?](https://atoneplace.net/which-came-first/python-vs-twitter/) - [Java or Microsoft?](https://atoneplace.net/which-came-first/java-vs-microsoft/) - [Java or the Macintosh?](https://atoneplace.net/which-came-first/java-vs-macintosh/) - [Java or Windows?](https://atoneplace.net/which-came-first/java-vs-windows/) - [Java or the World Wide Web?](https://atoneplace.net/which-came-first/java-vs-world-wide-web/) - [Java or Python?](https://atoneplace.net/which-came-first/java-vs-python/) ## Sources - Wikidata — Wikimedia Foundation (https://www.wikidata.org/) [CC0 1.0]