Do multiple import statements in a program affect performance?

后端 未结 4 2051
鱼传尺愫
鱼传尺愫 2021-02-14 14:51

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

4条回答
  •  面向向阳花
    2021-02-14 15:30

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

提交回复
热议问题