how to compile and run Java program using Command Prompt

preview_player
Показать описание
hello friends, this video will help you to compile and run Java program using Command prompt.

step-1: Go to any text editor and write your java program.
step-2: Save the program with the extension of ".java".
step-3: Now open the command prompt by press Windowskey+X
and select the command prompt.
step-4: Change the directory to where you save the java program.
step-6: Now run the program by type "java sample".

Thank You !

Keywords:
How to run the java program.
run java program using command prompt.
write and execute the java program using command prompt.
compile and run java program.
run java program in cmd.
compile and execute java program in cmd.
Рекомендации по теме
Комментарии
Автор

It's easy cd file name
Javac class name.java
Java class name
Out put

moviecenter
welcome to shbcf.ru