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 21In 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
- JVM — The program that loads class files and runs their bytecode, turning hot code into native machine instructions while it runs.
- JDK — The Java Development Kit: the Java runtime plus the tools that build programs, such as the compiler javac, the disassembler javap and the jar tool.
- bytecode — A compact, portable instruction format that a virtual machine or interpreter executes, instead of instructions for one particular processor.
- OpenJDK — The open-source project that develops the Java platform, and the source code most JDK builds are made from.
- JUnit — The standard testing framework for Java, which discovers methods marked @Test, runs them and reports each failure with the test's name.
- AssertJ — A Java library of fluent assertions, starting with assertThat, that read like sentences and explain failures in detail.
- Testcontainers — A family of libraries that start real dependencies such as databases in throwaway containers for the length of a test.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- Release Trains And Long Term Support — Modern Java: Virtual Threads & High-Throughput Services
- The Lifecycle Of A Java Program — Modern Java: Virtual Threads & High-Throughput Services
- Tying It All Together — Modern Java: Virtual Threads & High-Throughput Services
- Introducing pytest — Automated Testing, TDD & Quality Engineering
- Testing Time And Randomness — Automated Testing, TDD & Quality Engineering
- Integration Testing With Containers — Automated Testing, TDD & Quality Engineering