Names of packages that are to be made widely available should be formed as
described in §7.7. Such names are always qualified names whose first identifier
consists of two or three uppercase letters that name an Internet domain, such as
COM
, EDU
, GOV
, MIL
, NET
, ORG
, or a two-letter ISO country code such as UK
or JP
.
Here are examples of hypothetical unique names that might be formed under this
convention:
COM.JavaSoft.jag.Oak ORG.NPR.pledge.driver UK.ac.city.rugby.game
Names of packages intended only for local use should have a first identifier that begins with a lowercase letter, but that first identifier specifically should not be the identifier java
; package names that start with the identifier java
are reserved to JavaSoft for naming standard Java packages.
When package names occur in expressions:
import
declarations (§7.5) can usually be used to make available the type names declared in that package.