Is java.util.scanner and java.util.* the same??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is java.util.scanner and java.util.* the same???

java

16th May 2017, 10:10 AM
Neil Bhowmik
Neil Bhowmik - avatar
2 Answers
+ 14
java.util.Scanner imports only Scanner class. * means importing ALL classes of java.util package like Date, ArrayList, Scanner and so on.
16th May 2017, 10:16 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 1
thanx
16th May 2017, 10:32 AM
Neil Bhowmik
Neil Bhowmik - avatar