A package is a way of grouping together related classes. All the names within the class are private, unless a user explicitly refers to the package and the class using an import statement. Using packages avoids a potential problem of duplicate names which might otherwise arise, particularly in large pieces of software.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License