Hello,
Currently reading OCP Java 11 Study Guide. I read that there is no difference from using wildcards on import vs specific class import in runtime.
However, I tested the compile time of it and got different result:
using wildcards - 355ms
using specific class - 5ms
I know this will not affect the application in runtime. But is it safe to assume that it is longer to compile a program using wildcards in import statements?
I have to ask because I am not sure if this is really the case or just the because of my machine.
Thanks!