Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>According to <a href="http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html" rel="noreferrer">Sun</a>, packages should be namespaced according to the inverse of your domain name, and then followed by whatever you see fit. Most companies or organisations have a <code>.com</code>, or <code>.org</code> domain name, and hence most packages start with <code>com.</code> or <code>org.</code>. To quote from the <a href="http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html" rel="noreferrer">Sun Code Conventions</a>:</p> <blockquote> <p>The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, currently com, edu, gov, mil, net, org, or one of the English two-letter codes identifying countries as specified in ISO Standard 3166, 1981.</p> <p>Subsequent components of the package name vary according to an organization's own internal naming conventions. Such conventions might specify that certain directory name components be division, department, project, machine, or login names.</p> </blockquote> <p>And the examples that they give, make it pretty clear that you are meant to use the companies DNS name:</p> <blockquote> <p>com.sun.eng</p> <p>com.apple.quicktime.v2</p> <p>edu.cmu.cs.bovik.cheese</p> </blockquote> <p>You will also see <code>edu.</code> and <code>net.</code> packages out <a href="http://pmd.sourceforge.net/ant-task.html" rel="noreferrer">in the wild</a> as well, although they are less common.</p>
 

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