李刚 发表于 2013-8-16 14:48:45

[Oracle interview]Can I import same package/class twice? Will the JVM load the package twice at runtime?

曹凯 发表于 2013-8-16 15:01:09

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]
查看完整版本: [Oracle interview]Can I import same package/class twice? Will the JVM load the package twice at runtime?