Performing an explicit import is safer at compile time, since there's no possibility of a class conflict. e.g.
import java.sql.*;
import java.util.*;
causes a problem if you're trying to use a Date class (i.e. from which package ?).
But other than that, there's no performance or memory aspect. It's purely a compile-time issue.