Write a Sample Java Program, Launch Eclipse IDE, Create a Java project, Create a Java Package under the Java Project, and Create a Java Class under the Java Package. Write Java Code in the Java Class, no need to compile in Eclipse IDE, auto compilation, and You just execute the Java Program. After Java program Execution, then it will return the output on the Eclipse IDE Console.
Setup Java Environment in order to write & execute Java Programs, then Write Java Program in Eclipse IDE Editor, and Execute the Program.