How do unused import statements influence the size of generated bytecode?
Explanation
Compiler changes each class name to fully qualified name. And removes the import statement. So, the import statement doesn't make it to byte code. ( http://stackoverflow.com/questions/18153690/does-an-unused-import-declaration-eat-memory-in-java )

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes