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 )
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback