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

image_pdfimage_print

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

2. Compile the code

3. Run The compiled