Programming can be thought of as code manipulating data. In Java, code is organized around the following:
Packages are collections of classes with similar functionality. Classes are composed of methods that support the functionality of the class. This organization provides structure to applications. Classes will always be in a package and methods will always be in a class.
If the package statement is not included in a class definition, the class becomes part of a default package which consists of all of the classes in the same directory that doesn't have a package statement.
A class is the fundamental building block of object-oriented programs. It generally ...