Quizzes
Java
How do unu ...
Theory
Android
Log In
Sign Up
Programming Quizzes
Theory
Snippets
Papers
Landing
Android
Subscriptions
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How do unused import statements influence the size of generated bytecode?
Increase
Decrease
The influence depends on JVM version
Does not influence
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 )
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
ava Quiz
Start Quiz
or
Read more about
Java Quiz
Follow CodeGalaxy
Mobile Beta
Send Feedback
Login in to like
Login in to comment