The meaning of a name classified as a PackageName is determined as follows.
If a package name consists of a single Identifier, then this identifier denotes a top- level package named by that identifier. If no package of that name is accessible, as determined by the host system (§7.4.3), then a compile-time error occurs.
If a package name is of the form Q.
Id, then Q must also be a package name. The
package name Q.
Id names a package that is the member named Id within the
package named by Q. If Q does not name an accessible package or Id does not
name an accessible subpackage of that package, then a compile-time error occurs.