In this tutorial video using CMD runs a java program file first we must install the JDK if this not present in System the Java program can not be Compile and Run.
Command for Changing Directory:
cd path-name
Command for Compiling the Java Code:
javac filename.java
Command for Executing the Java Class:
java filename