通配符导入和所需类导入之间的性能差异

问题描述:

性能方面的复杂性

java.io.*

java.io.File

PS。

我知道第一个文件将包含 java.io。* 中的每个文件,下一个文件只包含选定的类文件。

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

在运行时0。

两者都生成相同的字节代码

Both generate the same byte code