+ 4
Does import java.util.* consume more memory than java.util.Scanner ?
Will java.util.* will consume more memory at runtime or it will just use same memory and import only those library which are required at runtime in util package?
3 Respostas
+ 3
You can read this:
https://stackoverflow.com/questions/8135903/java-memory-usage-for-scanner
+ 3
Anubhav Singh
No. You can read this about using wildcard: https://stackoverflow.com/questions/7128348/performance-difference-between-a-wild-card-import-and-the-required-class-import/7128365#7128365
+ 1
no it doesn't