A '''Java packagepack''' organizes [[Java (programming language)|Java]] [[class (computer science)|classes]] into [[namespaces]],<ref>James Gosling, Bill Joy, Guy Steele, Gilad Bracha, ''The Java Language Specification, Third Edition'', ISBN 0-321-24678-0, 2005. In the Introduction, it is stated "Chapter 7 describes the structure of a program, which is organized into packages similar to the modules of Modula."</ref>
providing a unique namespace for each type it contains.
Classes in the same package can access each other's package-private and protected members.