Attic › Computer science › Java (programming language)
Java lets one program run on any computer without changes
Java is a general-purpose programming language that Sun Microsystems released in 1995. Its primary goal is to let programmers write a program one time and run it on any type of computer without changes.
Before Java, most software was written in languages like C or C++. In these languages, a programmer must prepare a different version of a program for each type of computer processor and operating system. A program prepared for a Windows computer will not run on a Mac or a Linux server unless the programmer changes the code and builds it again for the new machine.
In 1991, James Gosling and a small team of engineers at Sun Microsystems started to build a new language, first called Oak, and Java was released as Sun's platform in 1995. Different manufacturers used different processors in their devices, and it was too expensive to rewrite software for each new chip.
Gosling made a language that did not depend on the physical hardware of a device. He used the familiar style and rules of C and C++ so that programmers could learn the new language quickly. The team first named the language Oak, after a tree outside Gosling's office, and later changed the name to Java, after Java coffee.
When the World Wide Web grew in the mid-1990s, the internet connected millions of different computers together. Sun Microsystems saw that Java was ideal for this network. They released the language with the slogan "Write once, run anywhere" to show that one Java program could work on every computer on the internet. Oracle Corporation bought Sun Microsystems in 2010 and continues to develop Java today.
Fact-checked against Java (programming language) on Wikipedia
Part of the Computer science syllabus: Programming Paradigms and Abstraction
See it on the timeline of Computer science