通配符导入和所需的类导入之间的性能差异 [英] Performance difference between a wild card import and the required class import

查看:23
本文介绍了通配符导入和所需的类导入之间的性能差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在性能方面的复杂性是什么

What is the complexity in terms of performance between

java.io.*

java.io.File

附注.

我知道第一个将包含 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.

两者生成相同的字节码

这篇关于通配符导入和所需的类导入之间的性能差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆