Java Reference
In-Depth Information
If a name appears in a place where a type name is expected, then the
different type scopes must be searched for that name. Type scopes are
defined by packages. The search order is as follows:
1. The current type including inherited types.
2. A nested type of the current type.
3. Explicitly named imported types.
4. Other types declared in the same package.
5. Implicitly named imported types.
Again, hiding of type names is possible, but a type can always be expli-
citly referred to by its fully qualified name, which includes package in-
formation, such as java.lang.String . Packages and type imports are dis-
cussed in Chapter 18 .
In order to make an apple pie from scratch, you must first create
the universe.
Carl Sagan, Cosmos
 
Search WWH ::




Custom Search