Java
How do unu ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
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 )
java virtual machine
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
How is it possible (if it is) to allocate more memory for the Java Virtual Machi...
Select a Java disassembler that is included into a standard JDK....
The following class was launched with a -ea key. What is the result of following...
How can an object be destroyed in Java?...
What is JRE?...
Is guaranteed that the garbage collection will start after calling Runtime.getRu...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment