Check out example codes for "difference between compile and execute in java". It will help you in understanding the concepts better.
Code Example 1
To compile means to check for any errors. It is like a grammatical check while execution means to run it.
Learn ReactJs, React Native from akashmittal.com