What is command prompt in Java?
On the Windows Command Prompt is a program to run the dos commands. This prompt is used to run any program by typing the name of executable file.
If you have successfully installed JDK and configured on your system them you can use the command prompt to compile the Java program.
Command prompt can be accessed in Windows 10 from the start menu, click on the start menu and then in the search box type cmd. This should display the icon of command prompt and then you click on it to run.
Command prompt is the term used for the terminal. In windows its cmd (Command Prompt). In windows you can type cmd on the start search and will get command prompt.
In Linux system it is terminal.
On the command prompt you can compile your Java program with following command:
and run it will the command
Learn to use command prompt at Hello world (First java program)
Here is the video tutorial: