javac command and java command in eclipse
1. eclipse's javac command: When eclipse saves the .java (source file) file (shortcut key ctrl+s), the javac command will be executed. See the figure above, Default output folder: is the storage location of the clss file.
2. eclipse java command: See the figure above. After selecting the java file, execute the java Application (shortcut key F11) method and the class file will be run. If the class file is not generated, execute the javac command first, that is, save the java file and then run.
Thank you for reading, I hope it can help you. Thank you for your support for this site!