WRITE SYNTAX TO RUN JAVA FILE. code example
Example 1: how to run java files
javac filename.java //(This will compile the program)
java filename //(This will run the file)
Example 2: run java file
javac hello.java
javac filename.java //(This will compile the program)
java filename //(This will run the file)
javac hello.java