Do unused imports in java effects performance and consume memory?

1.2k views Asked by At
import java.io.*;
class Myclass
{
 //Some programming code that does not call any java io package methods or variables
}

Is that program takes more memory or even worse affect performance of the software/app than the program that has no unused imports?

1

There are 1 answers

0
M A On BEST ANSWER

No, imports are a compile-time feature (they have no meaning in the compiled code). They do not affect runtime behavior.