What is the difference between runtime and compile time exceptions ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the difference between runtime and compile time exceptions ?

Need explanations about runtime and compile time exceptions

27th Apr 2018, 2:10 AM
Jemwel Godinez
4 Answers
+ 2
yes , runtime errors occurs whwn the code execute and there is some problems like infinite loop or divisble by zero may be arithmetic exceptions...
27th Apr 2018, 4:38 AM
abhinav jha
abhinav jha - avatar
0
so runtime errors occur while the code excecute ?
27th Apr 2018, 3:50 AM
Jemwel Godinez
0
thank you for the answers
27th Apr 2018, 4:39 AM
Jemwel Godinez
0
compile time error are syntactical errors in coding. For example we missing the semicolons and tab spaces in python. And run time errors are infinite execution of loops. For example we cannot written a test condition in a loop.
28th Apr 2018, 1:46 PM
Hema Medicharla
Hema Medicharla - avatar