Java
termKept in this browser · My desk
Sun Microsystems' object-oriented language, announced on 23 May 1995, compiled to bytecode for the Java Virtual Machine and memory-managed by a garbage collector.
The white paper by James Gosling and Henry McGilton says it began as a research project for network devices and embedded systems, after C++ proved too difficult; Java Development Kit (JDK) 27 became generally available on 15 September 2026.
What it is. Java is a class-based, object-oriented language that compiles to bytecode for the Java Virtual Machine (JVM) and leaves memory to a garbage collector. The Java Language Specification (JLS) calls it "strongly and statically typed", "a production language, not a research language", and says it "does not include any unsafe constructs, such as array accesses without index checking". Its designers set out to remove what they saw as C++'s hazards ("no explicit programmer-defined pointer data types, no pointer arithmetic, and automatic garbage collection"), drawing on Eiffel, Smalltalk, Objective C and Cedar/Mesa.
Origin. The white paper by James Gosling and Henry McGilton (May 1996) says the language began as a research project at Sun Microsystems to develop software for network devices and embedded systems, for which C++ had been the first choice until its difficulties grew too great. Sun announced Java on 23 May 1995, and it set the terms for the web's other language: Netscape's and Sun's managers, the JavaScript history records, wanted a "little language" to complement Java. Oracle now describes itself as the steward and leading contributor of the Java platform, and claims more than 73 billion Java Virtual Machines running worldwide.
How it works. Compile time translates programs into a machine-independent bytecode held in class files; run time loads and links the classes, may generate machine code and optimize the program dynamically, and executes it. The Java Virtual Machine Specification (JVMS) calls the JVM "an abstract computing machine" with its own instruction set and memory areas, which "knows nothing of the Java programming language, only of a particular binary format, the class file format", holding bytecodes and a symbol table. The first prototype, built at Sun, emulated that instruction set in software on a handheld device resembling a contemporary personal digital assistant (PDA); the specification compares the design to the P-code machine of the University of California, San Diego (UCSD) Pascal. Because the JVM knows only class files, any language that compiles to them can run on it, which is how it became a platform for other languages such as Kotlin.
Standards and status. Java is defined by the JLS and the JVMS, published for each release of the Java Platform, Standard Edition (SE), which is specified by Java Specification Requests (JSRs) in the Java Community Process. OpenJDK's Java Development Kit (JDK) Project, which produces the open-source reference implementations, ships a feature release every six months on a strict time-based model: JDK 25 on 16 September 2025, JDK 26 on 17 March 2026 and JDK 27 on 15 September 2026, with 28 in development. Oracle's support roadmap names 8, 11, 17, 21 and 25 as long-term support (LTS) releases and plans an LTS every two years, the next being Java 29; Java SE 25 has Premier Support until September 2030 and Extended Support until September 2033, and Java SE 8 still receives free public updates for personal and development users.
Where it shows up. Oracle says Java SE is widely used to build and run mission-critical enterprise services on premises and in the cloud, and cites a VDC Research study ranking it first for cloud-native development. For security teams the issue is longevity: Oracle does not plan to move desktops from Java SE 8 to later versions through auto-update, and the Java Plugin and Java Web Start deployment stack is supported only on Java SE 8, so old runtimes linger inside applications and appliances.
What goes wrong. Java removed memory corruption from ordinary code but not logic that treats data as instructions. Its native serialization turns a byte stream into an object graph, and untrusted streams can instantiate classes the programmer never meant to load: MITRE ranks Deserialization of Untrusted Data (Common Weakness Enumeration, CWE-502) fifteenth in its 2025 Top 25, with 11 vulnerabilities in the Known Exploited Vulnerabilities (KEV) catalogue of the Cybersecurity and Infrastructure Security Agency (CISA). Java 9 answered with JDK Enhancement Proposal (JEP) 290, filters on incoming serialization data configurable per stream or globally, later extended by JEP 415's context-specific filters. The worst Java incident was a library flaw: Log4Shell, CVE-2021-44228 (Common Vulnerabilities and Exposures), published on 10 December 2021 and added to KEV the same day, let anyone who controlled a logged string make Apache Log4j 2 (2.0-beta9 through 2.15.0) look up a Java Naming and Directory Interface (JNDI) address on an attacker's Lightweight Directory Access Protocol (LDAP) server and run the code it returned; the National Vulnerability Database scores it 10.0, the maximum.
Neighbours. Bytecode and just-in-time compilation, the JVM's execution model; C++, the language it simplified; Kotlin, its JVM successor on Android; C#, its closest rival; JavaScript, the unrelated language that borrowed its name; Log4Shell, its most famous vulnerability.
Also known as: java language, jvm language, jdk
Sources
- James Gosling and Henry McGilton, The Java Language Environment, May 1996: a research project for network devices and embedded systems; C++ abandoned; no pointers, garbage collection (read 2026-11-23)
- Allen Wirfs-Brock and Brendan Eich, JavaScript: The First 20 Years, HOPL IV 2020: designed in May 1995 at Netscape, the ten-day Mocha prototype, LiveScript in September 1995, announced 4 December 1995, JavaScript 1.0 in March 1996; Sun announced Java on 23 May 1995 (read 2026-11-23)
- The Java Virtual Machine Specification, Java SE 21, chapter 1: the JVM knows only the class file format of bytecodes and a symbol table; any language expressible in class files can be hosted (read 2026-11-23)
- OpenJDK, JDK Project: JDK 27 general availability on 15 September 2026 (read 2026-11-23)
- The Java Language Specification, Java SE 21, chapter 1 (read 2026-11-23): strongly and statically typed; a production language, not a research language; compile time to machine-independent byte code; automatic storage management; no unsafe constructs such as array accesses without index checking
- Oracle, Java SE Support Roadmap (read 2026-11-23): Java SE 8, 11, 17, 21 and 25 are LTS releases; future LTS every two years, next planned Java 29; Java SE 25 Premier Support until September 2030 and Extended Support until September 2033; free public updates of Java SE 8 for personal and development users
- OpenJDK, JEP 290: Filter Incoming Serialization Data (read 2026-11-23): release 9; filters on ObjectInputStream configurable per stream or by a global filter; relates to JEP 415 context-specific deserialization filters
- MITRE, CWE-502: Deserialization of Untrusted Data (read 2026-11-23): the weakness of deserializing untrusted data without verifying the result
- NIST National Vulnerability Database API, CVE-2021-44228 (read 2026-11-23): Apache Log4j2 2.0-beta9 through 2.15.0 JNDI features do not protect against attacker-controlled LDAP endpoints; published 10 December 2021; CVSS 3.1 base score 10.0; added to CISA KEV 10 December 2021
- MITRE, 2025 CWE Top 25 Most Dangerous Software Weaknesses (read 2026-11-23): CWE-502 Deserialization of Untrusted Data ranked 15th, 11 CVEs in KEV
- Oracle, Moved by Java (read 2026-11-23): Oracle's claims of more than 73 billion Java Virtual Machines worldwide and of being the steward and leading contributor of the platform; a VDC Research study cited as ranking Java first for cloud-native development; Java SE widely used for mission-critical enterprise services