Do multiple import statements in a program affect performance?

后端 未结 4 2052
鱼传尺愫
鱼传尺愫 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:45

    Another reason is if you have a multiple import statements, this may hide the class relationship from the reader. Sometime it's nice to know that certain class doesn't depend on (directly) to some certain other classes.

提交回复
热议问题