Earl Kimley Rafallo

Greenhorn
+ Follow
since Jul 28, 2023
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Earl Kimley Rafallo

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!
1 year ago