Importing unnecessary files to a java program will increase the size of the byte code, Is this true?
Asked
Active
Viewed 485 times
-2
-
1Compile the code and see for yourself. – Andrew Williamson Apr 14 '16 at 07:07
-
It's not possible to determine which imports where used from the compiled code, so this statement wouldn't make any sense. – Peter Lawrey Apr 14 '16 at 07:43
1 Answers
3
It is not true. The Import command is for the compiler only. It does not impact the compiler output in any way.

mort
- 12,988
- 14
- 52
- 97

Sharon Ben Asher
- 13,849
- 5
- 33
- 47