diferencia entre compilar y ejecutar en java

To compile means to check for any errors. It is like a grammatical check while execution means to run it. 
Xerothermic Xenomorph