How to compile java over terminal, command line , Run java file

1. You need to check, java version with this command
[crayon-6b10779c216ce886001520/]
2. Compile the code
[crayon-6b10779c216db971484242/]
3. Run The compiled
[crayon-6b10779c216ef395923638/]
[crayon-6b10779c216f1399574508/]
[crayon-6b10779c216f2661908057/]