6.7. Fully Qualified Names and Canonical Names

Every primitive type, named package, top level class, and top level interface has a fully qualified name:

• The fully qualified name of a primitive type is the keyword for that primitive type, namely byte, short, char, int, long, float, double, or boolean.

• The fully qualified name of a named package that is not a subpackage of a named package is its simple name.

• The fully qualified name of a named package that is a subpackage of another named package consists of the fully qualified name of the containing package, followed by “.”, followed by the simple (member) name of the subpackage.

• The fully qualified name of a top level class or top level interface that is declared in an unnamed package ...

Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.