0

What is "import java.util.*;" ?

Look at title

10th Apr 2020, 3:24 PM
Yahel
Yahel - avatar
7 Respuestas
+ 1
If you are not using any class or method from a specific package you don't need to import it. You only import it when you want to use any method or class from it.
10th Apr 2020, 4:20 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 3
Java util package contains collection framework, collection classes, classes related to date and time, event model, internationalization, and miscellaneous utility classes. On importing this package, you can access all these classes and methods.
12th Apr 2020, 12:38 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
It's a package in java.
12th Apr 2020, 5:42 AM
Kumar
Kumar - avatar
0
java.util is a package that contains frameworks and different classes.By importing java.util.* complete package is imported and we can use different method and classes of this package. Like,we can also import only one class from entire package import java.util.Scanner; Importing Scanner class that is used for input.
10th Apr 2020, 3:48 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
Muhammad Bilal can I have an example please? The difference between importing and not doing nothing
10th Apr 2020, 4:02 PM
Yahel
Yahel - avatar
0
Muhammad Bilal ok. Thanks
10th Apr 2020, 4:25 PM
Yahel
Yahel - avatar
0
You're welcome
10th Apr 2020, 4:33 PM
Muhammad Bilal
Muhammad Bilal - avatar