SE450: Packages: Fully Qualified Names [7/47] |
Java classes are accessed from other packages using fully-qualified names, such as java.awt.Component or types.simplePackage.Main.
new java.util.LinkedList();
One can also use bare class names in other packages by importing the relevant classes.
import java.util.LinkedList; new LinkedList();
Import statements do nothing but help resolve names.