Java is a programming language that is object-oriented, specifically designed to have as few implementation dependencies as possible.
The syntax of Java is largely influenced by C++.
Java was built almost exclusively as an object-oriented language.
All code is written inside classes, and every data item is an object, with the exception of the primitive data types.
Java does not support operator overloading[48] or multiple inheritance for classes
First open your IDE and create a packpage for your program
Then creates a new class main in the carpet of classes in the packpage
Second write the code in the main.
Finally executes your code.