Hi,
Check out the following code from JLS
doc -------------
package Vector;
public
class Mosquito { int capacity; }
---------------
package strange.example;
import java.util.Vector;
import Vector.Mosquito;
class
Test {
public static void main(
String[] args) {
System.out.println(new Vector().getClass());
System.out.println(new Mosquito().getClass());
}
}
the output is :
class java.util.Vector
class Vector.Mosquito
why there is no conflict in name ??
Pinky