All of the errors that we looked at above were detected by the compiler, which was nice. Unfortunately, it is possible to make mistakes that cannot be detected until the program is actually run. In fact, the sample program contains just such a mistake! Can you figure out what it is?
A runtime error is a more serious mistake than a syntactic error. Why is that?
Hamlet Project