Java package: Difference between revisions

Content deleted Content added
m Core packages in J2SE 5.0: java.lang.Math is a class, not a package
context makes it pretty clear we're talking about the programming language, not the Indonesian island
Line 1:
A '''Java package''' is a mechanism for organizing [[Java (programming language)|Java]] mechanism for organizing [[class (computer science)|classes]] into [[namespace (computer science)|namespaces]]. Java [[source file]]s belonging to the same category or providing similar functionality can include a '''<code>package</code>''' statement at the top of the file to designate the package for the classes the source file defines. Java packages can be stored in compressed files called [[JAR file]]s.
 
* A package provides a unique namespace for the types it contains.