difference between compile and execute in java

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

Also in Java: