The Java Platform Java Runtime Environment Data Types Control Statemets Methods Arrays Classes and Objects Inheritance Constructor Interface Packages & Access Modifiers![]() Packages![]() The package directive![]() The import directive![]() Encapsulation and Access to Class Members![]() Access modifiers![]() Example![]() Recommended Reading Java Collections Framework | The package directiveAt compile time, a class can be identified as being part of a particular package by providing a package directive at the beginning of the source code. A package directive, if it exists, must occur at the beginning of the source code. package bank.Account; |