Wednesday, December 10, 2008
A Package
To create a package is quite easy. Simply include a package command as the first statement in a Java source file. Any classes declared within that file will belong to the specified package. The package statement defines a name space in which classes are stored. If the package statement is omitted, the class names are put into the default package, which has no name. While the default package is fine for short, sample programs, it is inadequate for real applications. A package is defined for its code.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment