A package is a namespace that contains a group of similar types of classes, interfaces, and sub-packages . We can think of packages as similar to different folders on our computers where we might keep movies in one folder, images in another folder, software in another folder, etc.