posted 22 years ago
Hi ,
You are correct. Compilation errors occur when your syntax is not right or not allowed. Run time errors occur when you are executing and these might be due logical errors ( semantic), the data required is not available, corruption of data (mainly which invovles remote method invocations and data is serialized).
For example , if you are working with sockets and trying to connect to a server, the program would throw a run-time exception , if server is not running for any reason.
My idea of posting this message, is to emphasize that run-time errors occur not only due to logical errors , but might also depend on other factors (like network connection, object serilization etc)