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

1. You need to check, java version with this command

2. Compile the code

3. Run The compiled