Answer:
1. import statements
2. class definition
3. main method definition
Explanation:
1. import statements:- This line indicates that if you want to use a class of another package, then you can do this by importing it directly into your program. We also have to use import statements if we are using some standard classes like util or io.
e.g. import java.util.*;
2. class definition:- A Java program may contain several class definitions. Classes are the main and essential elements of any Java program.
e.g. class eam
{
}
3. main method definition:- Every Java stand-alone program requires the main method as the starting point of the program. This is an essential part of a Java program. There may be many classes in a Java program, and only one class defines the main method. Methods contain data type declaration and executable statements.
e.g. public static void main(String args[])