Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From <a href="http://en.wikipedia.org/wiki/Java_package#Package_naming_conventions" rel="nofollow noreferrer">Java package naming conventions</a> @ Wikipedia (emphasis added):</p> <blockquote> <p>Packages are usually defined using a hierarchical naming pattern, with levels in the hierarchy separated by periods (.) (pronounced "dot"). Although packages lower in the naming hierarchy are often referred to as "subpackages" of the corresponding packages higher in the hierarchy, there is almost no semantic relationship between packages. The Java Language Specification establishes package naming conventions to avoid the possibility of two published packages having the same name. The naming conventions describe how to create unique package names, so that packages that are widely distributed will have unique namespaces. This allows packages to be separately, easily and automatically installed and catalogued.</p> <p>In general, a package name begins with the top level domain name of the organization and then the organization's domain and then any subdomains, listed in reverse order. The organization can then choose a specific name for its package. <strong>Package names should be all lowercase characters whenever possible.</strong></p> <p>For example, if an organization in Canada called MySoft creates a package to deal with fractions, naming the package <code>ca.mysoft.fractions</code> distinguishes the fractions package from another similar package created by another company. If a German company named MySoft also creates a fractions package, but names it <code>de.mysoft.fractions</code>, then the classes in these two packages are defined in a unique and separate namespace.</p> <p>Complete conventions for disambiguating package names and rules for naming packages when the Internet domain name cannot be directly used as a package name are described in section 7.7 of the Java Language Specification.</p> </blockquote> <hr> <h3>See also:</h3> <ul> <li><a href="http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.7" rel="nofollow noreferrer">The Java Language Specification &sect;7.7 Unique Package Names</a></li> <li><a href="https://stackoverflow.com/questions/189209/do-you-really-use-your-reverse-domain-for-package-naming-in-java">Do you really use your reverse domain for package naming in java?</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload