The 3 main parts of any program are Classes, objects and methods.
In Java, a program is called a ‘class’.
Inside classes, is where you put your objects and methods, so really should start thinking of your java programs in terms of classes, objects and methods.