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

1. You need to check, java version with this command
[crayon-6684c71f1a224333998414/]
2. Compile the code
[crayon-6684c71f1a233711553931/]
3. Run The compiled
[crayon-6684c71f1a239260374741/]
[crayon-6684c71f1a23f945970085/]
[crayon-6684c71f1a244029310915/]