Skip to content

Glossary: Java Basics

Import

Also written: import, imports

A line at the top of a classic Java file that says which package a name comes from, such as `import java.util.List;`. Short `void main()` files don't need it.

Where the book teaches it

Related terms

Package