Qus:    Can I import same package or class twice? Will the JVM load the package twice at runtime?
Jul 02, 2021 13:34 1 Answers Views: 404 RANJIT
Prev Next
Answers (1)
VAMSI Jul 05, 2021 14:22
Answer:   One can import the same package or the same class multiple times. Neither compiler nor JVM complains about it. However, the JVM will internally load the class only once no matter how many times you import the same class.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect