Content deleted Content added
No edit summary |
Cleaned up (ahem re-written) following comments in the cleanup page |
||
Line 1:
Related [[Datatype|types]] in Java are placed in a common package.
*A package provides a unique [[namespace|namespace]] for the types it contains.
*A package facilitates access protection.
*A package can contain the following kinds of [[Datatypes|types]].
**[[Class (computer science)|Classes]]
**[[interface (computer science)|Interfaces]]
**Enumerated Types
**Annotations
A package is represented in Java code by a series of textual names delimited by the '.' (dot) character.
e.g
import java.awt.event.*;
And is stored on disk {or in a compressed file such as a [[Jar (file format)|jar]] or Ear (Enterprise Archive)}
as a series of nested directories.
e.g.
/java/awt/event
{{compu-lang-stub}}
|