|
|
|
| |
Package
A package is a collection of related
classes and interfaces providing access protection
and namespace management.
The format of the package declaration is quite
simple. The keyword package occurs first, and
is followed by the package name. The package
name is a series of elements separated by periods.
When class files are created they are placed
in a directory hierarchy that reflects their
package names. You must therefore be careful
that each component of your package name hierarchy
is a legitimate directory name on all platforms.
Therefore, you must not use characters such
as the space, forward slash, backslash, or other
symbols.
Example:
package allapplabs.com;
class glossary{
...
}
Here, allapplabs and com are directories where
com is the sub-directory of allapplabs and class
glossary is in allapplabs.com package.
[
Received from Seeny Desai ]
|
|