//This will import all the classes in the //java.util package import java.util.* ; //This will only import the Vector class import java.util.Vector ; public class access1 { //package access //a class in this package can access it int x1 ; //only this class can access it private int x2 ; //No need to import String . It is in the //java.lang package and that gets imported //by default public static void main( String args[] ) { //Vector exists in the java.util package //We need to import it. Vector v1 ; //If we don't have an import then use //fully qualified name java.util.Vector v2 ; } //public static void main( String args[] ) }