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

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

王林
Release: 2020-06-16 13:49:12
Original
14381 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template