Packages and Import

Mikael Olsson · Apress eBooks · 2021

Packages are used to avoid naming conflicts and to organize code files into different directories. So far in this book, the code file has been located at the root of the project’s source directory and has therefore belonged to the so-called default package . In Java, the directory a file belongs to, relative to the project’s source directory, corresponds to the package name.

Read the paper · More papers on PaperTik