A
A
andy-0072014-09-04 18:56:17
Java
andy-007, 2014-09-04 18:56:17

How to identify compiler errors and runtime errors?

I want to clarify about the differences between compilation errors and run-time errors. It is clear that in the process of executing the program, everything will be shown and written to us. How to formulate the differences between them? What are compilation errors, and what are runtime errors?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kyberman, 2014-09-05
@Kyberman

The difference between these errors is the timing of their discovery. Compilation errors, as the name suggests, are detected at compile time. Runtime errors can be detected when the program is launched, if you are lucky, and the code branch containing the error will be executed on the test data.

D
DancingOnWater, 2014-09-05
@DancingOnWater

Compilation errors are syntax errors.
Execution errors are errors in logic.
This is if in a nutshell.

J
jcmvbkbc, 2014-09-04
@jcmvbkbc

If there is something to perform, there will be runtime errors. If there is nothing to execute, then there were compilation (or linking) errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question