The scope of a declaration is the region of the program within which the entity declared by the declaration can be referred to using a simple name, provided it is visible (§6.4.1).
A declaration is said to be in scope at a particular point in a program if and only if the declaration’s scope includes that point.
The declaration of a package that is not observable is never in scope. The declaration of a subpackage is never in scope.
java is always in scope.