Package naming convention

java, naming, naming-conventions, package

Solution

The convention is to write the domain name backwards, so it should be

nz.co.example.helloworld

This is explained in the Java tutorial.

Problem

The typical case is that a package is prepended with a url, to prevent conflicts. E.g. com.example.helloworld What do you do with a multi-part TLD, e.g. co.nz? - co.nz.example.helloworld, or - nz.co.example.helloworld Thoughts?

Original source