InterviewSolution
Saved Bookmarks
| 1. |
Can We Import Same Package/class Two Times? Will The Jvm Load The Package Twice At Runtime? |
|
Answer» Yes, we can import the same package/class multiple TIMES. Compiler and JVM are not complaining about it. And the JVM will internally LOAD the class only once no matter how many times we import the same class. Yes, we can import the same package/class multiple times. Compiler and JVM are not complaining about it. And the JVM will internally load the class only once no matter how many times we import the same class. |
|