So how do we produce Java programs? Java is a text based language, so the first step is to write the source code for our Java application using a text editor and save that source text in a file. You can use any editor you wish.
Next that source file is passed to the Java compiler. The compiler reads the Java source and checks for errors and if no errors are found, outputs the appropriate bytecode to a second file for execution.