Basically, a namespace is the "space" in which a "name" is valid. In Java, packages are used to define namespaces for classes and interfaces.
For example, within the package (namespace) java.util, "List" identifies a particular interface. But within the package java.awt, "List" identifies an entirely different class. This can be resolved either by using fully qualified names (like java.util.List) or by careful use of import statements.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
posted 11 years ago
Sriram<br />SCJP<br />SCWCD
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad: