you can import both packages as well as a specific class from a specific package
the general syntax is import <package-name>.*; //import all classes //only classes are imported //sub packages are not imported. //you need to writes seperates statments if you want //to import the sub packages to
import <package-name>.<class-name>; //import a class
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ] Performance is a compulsion, not a option, if my existence is to be justified.
Joined: Jun 22, 2005
In a mock test i had statement. import <pacakgename> ;