+ 3
What happens if I import all the existing packages to my program? Will it get slower?
Java
2 ответов
+ 6
I think there is no performance or overhead cost to doing so. Unused imports have no performance impact at runtime. Import statements only affect what happens during compile time.
+ 1
No, unlike in C/C++ it won't get slower if you import all packages in java.