程序中的多个import语句会影响性能吗? [英] Do multiple import statements in a program affect performance?

查看:349
本文介绍了程序中的多个import语句会影响性能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说在程序中使用多个import语句会影响其运行时性能。这是真的?如果是这样,为什么?

I heard that using multiple import statements in a program affects its runtime performance. Is this true? If so, why?

推荐答案

完全没有。导入仅在编译期间使用,类文件不再具有它们。

Not at all. Imports are only used during compilation, the class files do not have them anymore.

这篇关于程序中的多个import语句会影响性能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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