TechnologyProgramming language

Java

Class-based, object-oriented programming language from Sun Microsystems whose programs run on the Java Virtual Machine across many platforms.

Java is a statically typed, object-oriented programming language whose source code is compiled into bytecode for the Java Virtual Machine (JVM) rather than directly into machine code. Any system with a compatible JVM can run the same compiled program, a portability goal central to the language's design. The JVM manages memory with garbage collection and uses just-in-time compilation to turn frequently used bytecode into fast native code. Java's syntax resembles C and C++ but omits features such as manual memory management and pointer arithmetic.

James Gosling led the language's development at Sun Microsystems, starting in 1991 under the name Oak, and Sun released it publicly in 1995. Java quickly spread into enterprise servers, education and, later, Android app development. Sun began releasing the platform as open source under the OpenJDK project in 2006, and Oracle acquired Sun in 2010. Since 2018 a feature release has appeared every six months, with selected long-term support versions favored by enterprises.

Java remains one of the most widely used languages in business software, large web back ends and Android development, and its virtual machine hosts other languages such as Kotlin, Scala and Clojure. The original edition of Minecraft is written in Java. Its legal history includes Google v. Oracle, in which the US Supreme Court ruled in 2021 that Google's reuse of Java API declarations in Android was fair use. Critics have long noted its verbosity, which later versions reduced with features like records and lambdas.

Key points

  • Java compiles to bytecode that runs on the Java Virtual Machine on many platforms.
  • James Gosling led Java's development at Sun Microsystems, which released it in 1995.
  • Oracle acquired Sun, and with it Java, in 2010.
  • The US Supreme Court ruled in 2021 that Google's reuse of Java API declarations was fair use.

Related entries

Glossary term

Programming paradigm that organizes software around objects, which bundle data with the methods that operate on it and interact by sending messages.

Glossary term

Automatic memory management in which a language runtime finds and reclaims memory occupied by objects a program can no longer use.

Glossary term

Technique that compiles code into native machine instructions while a program is running, combining interpreter flexibility with compiled speed.

Glossary term

Software implementation of a computer that runs its own operating system or programs in isolation from the physical hardware beneath it.

Glossary term

Fair Use

Ideas and CultureAudio

US legal doctrine permitting limited use of copyrighted material without permission for purposes such as criticism, commentary, teaching and parody.

Technology

Minecraft

Video GamesIdeas and Culture

Sandbox game of exploring, mining, crafting and building in procedurally generated block worlds, and the best-selling video game of all time.

Technology

JavaScript

Programming

High-level programming language of the web, created at Netscape in 1995, that runs in every major browser and on servers through runtimes like Node.js.

Glossary term

Compiler

Programming

Program that translates source code written in one programming language, usually a high-level one, into another form such as machine code.

Referenced by

Other entries that discuss or point to Java.