7. Packages

This chapter explains how to bundle classes and interfaces into packages, use classes that are in packages, and arrange your file system so that the compiler can find your source files.

To make types easier to find and use, avoid naming conflicts, and control access, programmers bundle groups of related types into packages.

Get The Java® Tutorial: A Short Course on the Basics, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.