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.
In more detail
Package names are usually reversed domain names like com.example.inventory, matching the group ID. Classes in the same package can see each other's package-private members.
Example
com/example/inventory/ inside the JARRelated terms
- import statement — A statement that makes code from another module or package available by name in the current file.
- Maven coordinates — The group, artifact and version that together uniquely name a project or library, such as com.example:inventory:1.0.0.
Taught in
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- Sealed Types And Exhaustiveness — Modern Java: Virtual Threads & High-Throughput Services