Java class library
The large set of ready-made classes every Java program can use without adding a dependency, such as String, List, Optional and Thread.
In more detail
The class library ships with every Java runtime, organised into packages such as java.lang, java.util and java.time. The runtime is the JVM together with this library. Its official documentation is the Java API reference, which the course links for each class it uses.
Example
java.util.List, java.util.Optional and java.time.Clock all come from the class libraryRelated terms
- JRE — The JVM plus the Java standard library: everything needed to run a compiled Java program, but no compiler.
- package (Java) — A named group of related Java classes, such as java.util, that also forms a folder path and a namespace for class names.
- Java Collections Framework — The standard library's set of interfaces and classes for groups of objects, chiefly List, Set and Map, and their implementations.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Collections Framework — Modern Java: Virtual Threads & High-Throughput Services