• Post Reply Bookmark Topic Watch Topic
  • New Topic

Import

 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the following
Case 1) import java.util.*;
Case 2) import java.util.Vectors;
Could you plesae compare the performance of jvm in the cases above ??
 
paul wheaton
Trailboss
Posts: 22051
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the performance forum so more people can see it.
 
paul wheaton
Trailboss
Posts: 22051
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure it will make no difference to the JVM. It will make a difference to the compiler as it will try to find the class you are looking for instead of going right to it. But that time difference is pretty small.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!