What is the difference between:. import java.util.Scanner;. &. import java.util.*; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the difference between:. import java.util.Scanner;. &. import java.util.*;

9th Aug 2017, 1:15 PM
Atharva Hadawale
Atharva Hadawale - avatar
2 Answers
+ 5
The first explicitly imports Scanner only, the second imports everything from util package.
9th Aug 2017, 1:24 PM
marit vandijk
0
25th Dec 2020, 3:32 PM
Ali Al-Zubaidy
Ali Al-Zubaidy - avatar