Search code examples
javaimportperformance

Performance difference between a wild card import and the required class import


What is the complexity in terms of performance between

java.io.*

and

java.io.File

PS.

I know that the first one will include every file in java.io.* and the next one only the selected class file.


Solution

  • At runtime 0.

    Both generate the same byte code