Java Reference
In-Depth Information
It is an error to import a specific type that exists as a top-level (that
is non-nested) type within the current source file. For example, you
can't declare your own Vector class and import java.util.Vector . Nor can
you import the same type name from two different packages using two
single type imports. As noted above, if two types of the same name are
implicitly imported on demand, you cannot use the simple type name
but must use the fully qualified name. Use of the simple name would be
ambiguous and so result in a compile-time error.
 
Search WWH ::




Custom Search