Home  >  Article  >  Java  >  What does the import java.util.* statement mean?

What does the import java.util.* statement mean?

王林
王林Original
2020-06-16 13:49:1214193browse

What does the import java.util.* statement mean?

What does the "import java.util.*" statement mean?

1. "import java.util.*;" means importing all classes under the util package into the program;

2. Import "import java.util.*;" "If you want to use other classes in the util package later in the program, you don't need to re-import the package;

3. * represents a wildcard character, including all classes of util.

(Video tutorial recommendation: java video tutorial)

Related introduction:

Two import statements of import

Single type Import (single-type-import) (Example: import java.util.ArrayList; );

Type-import-on-demand (Example: import java.util.*;) .

Recommended tutorial: java entry program

The above is the detailed content of What does the import java.util.* statement mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn