Java

A general-purpose, class-based programming language whose programs compile to bytecode and run on the Java virtual machine.

In more detail

Java source files are compiled into class files that any JVM can run, which is why the same program works on a laptop, a build server and a cloud machine. The language, the JVM and the standard library are developed in the open by the OpenJDK project.

Examples

This course targets Java 21, a long-term support release.
java -version  # prints the feature version, for example 21
In this course: Its testing ecosystem includes JUnit, AssertJ and Testcontainers for Java, and it has a random generator interface for injecting randomness. Java code runs on a virtual machine, so the same compiled program works on any operating system.

Related terms

Taught in

References