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?
No, imports are a compile-time feature (they have no meaning in the compiled code). They do not affect runtime behavior.