adspace


Can I import same package/class twice? Will the jvm load the package twice at runtime?

Answer Posted / Bharat Kumar Rajak

No, you cannot import the same package or class twice. The JVM loads classes only once and shares them among all classes that use them. If you try to import a class twice, it is treated as an error.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category