java - about import statement -


i want know can check how many classes have been loaded class loader. want know, whether import statement in class * mark load many classes in perm area of heap? or when declare reference of specific type following 2 classes loaded?
ex.

map m = new hashmap(); //only these 2 classes loaded??? 

what if write import statement like

java.util.*; 

will class loader loads classes under java.util package? there class unloading process in java?

if want see classes loaded @ runtime try this:

java -verbose:class 

you should have question is there way classes classloader has loaded?


Comments