Is it true that java.util.List (importing a specific class) will make a program faster than java.util.*, or is this just a myth?
I know that import is just a way to say which List we want to use [java.util.List or com.abc.List] and we are not actually loading anything in JVM.
It would be great if I can get answer of above question and details about how JVM processes import statements or perhaps some resource which explains this.
Will JVM maintain a table in memory containing all types that are imported [or available to load]?
AFAIK, import is a compile-time Concept and not a runtime concept. Import will tell your compiler which List you are referring to for instance, meaning it won't make one bit of a difference at runtime. JavaC concept and not a JVM (runtime) concept.