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 JAR

Related terms

Taught in

References