Do not use import in java effects and use memory?

import java.io.*;
class Myclass
{
 //Some programming code that does not call any java io package methods or variables
}

Is this program a larger memory or even worse affects the performance of the software / application than a program that does not have unused imported resources?

+4
source share
1 answer

No, import is a compile-time function (they have no meaning in compiled code). They do not affect runtime behavior.

+3
source

All Articles