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