[Oracle interview]Can I import same package/class twice? Will the JVM load the package twice at runtime?
One canimport the same package or same class multiple times. Neither compiler norJVM complains abt it. And the JVM will internally load the class only once nomatter how many times you import the same class.
页:
[1]