+ 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?

5th Feb 2020, 1:17 PM
Anubhav Singh
Anubhav Singh - avatar
3 Réponses
5th Feb 2020, 1:45 PM
NightFox
NightFox - avatar
+ 1
no it doesn't
6th Feb 2020, 12:13 PM
Mziwakheni Khaka
Mziwakheni Khaka - avatar