Java Reference
In-Depth Information
This statement declares that all classes and interfaces defined in this
source file are part of the attr package. A package declaration must ap-
pear first in your source file, before any class or interface declarations.
Only one package declaration can appear in a source file. The package
name is implicitly prefixed to each type name contained within the pack-
age.
If a type is not declared as being part of an explicit package, it is placed
in an unnamed package. Each system must support at least one un-
named package, but they can support moretypically one per class load-
er. The existence of the unnamed package makes it simple for you to
write small programs without being encumbered by the organizational
requirements imposed on the members of named packages. Any non-
trivial program or set of library classes should always be part of a named
package.
 
Search WWH ::




Custom Search