Java is the name of a programming language created by Sun Microsystems. This company was bought out by Oracle Corporation, which continues to keep it up to date. It is designed to be platform-independent, which means that code written in Java can run on any device or operating system that has a Java Virtual Machine (JVM) installed. This makes Java a popular choice for developing cross-platform applications and games. Additionally, Java has a large and active community, and a wide range of libraries and frameworks available for use.[1] As of March 2023[update], Java 20 is the latest version (will be supported until September 2023), while Java 17, 11 and 8 are the current long-term support (LTS) versions. Being an LTS version means that it will continue getting updates for multiple years. The next planned LTS version is Java 21 (LTS), planned for September 2023.[2]
Being an open-source platform, Java isn't just supported by Oracle, e.g. Eclipse Adoptium also supports Java (JVM), to at least May 2026 for Java 8, and at least September 2027 for Java 17.
Java, which was called Oak when it was still being developed, is object oriented, meaning it is based on objects that work together to make programs do their jobs. Java code looks similar to C, C++, or C#, but code written in those languages will not work in Java in most cases without being changed.[3]
Java runs on many different operating systems, including Android, the world's most popular mobile operating system[4] (while Java continues to be used on Android, even by its maker Google, they no longer prefer Java; now Kotlin is their preferred language, though it can also be used with all Java code). This makes Java platform independent. It does this by making the Java compiler turn code into Java bytecode instead of machine code. This means that when the program is executed, a Java Virtual Machine interprets (or just-in-time compiles) the bytecode.[5]
Java is both a language, but its also a platform, and a number of languages compile to the same bytecode meant for that JVM platform, and can then work alone (without Java, the language, or with it). Google, that previously recommended Java, now recommends Kotlin language over Java for its Android platform, and it, like any JVM language, can also work with or without Java in all other contexts where Java alone would have been used.