+ 2

What is run time error

30th Dec 2016, 2:15 PM
Anna Ash867
Anna Ash867 - avatar
5 Respuestas
+ 8
Well, it is a logical error what you have write in your code. Compiler only can find syntax errors. Because every language has a define syntax and compiler only understand that language and then it convert them into mechine language. But logical thought is given by you. Like in one of the answer here said, you write a program for division of a number by other. It is syntax error free. But when you enter like 5 divided by 0 it will give you an error. And that is logical error or run time error.
30th Dec 2016, 3:35 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 5
Generally, there's two kinds of Exception in Java: checked and unchecked or runtime. Checked errors are checked when the program compile. If this error occurs, you'll not be able to compile your program. Runtime errors allow you to compile successfully but It won't run, instead, it will show error when you run the program. Hope u understand. Cuz my English is not so good.
31st Dec 2016, 11:58 PM
Sai Saing Hmine Tun
Sai Saing Hmine Tun - avatar
30th Dec 2016, 2:31 PM
C.E.
C.E. - avatar
+ 1
It is an error that occurs when a program is running and is not detected when the program is compiled.
30th Dec 2016, 2:33 PM
Alex Matthews
Alex Matthews - avatar
+ 1
An error which occurs at the time of execution of your code. eg: divide by 0, here no compile time error would occur.
30th Dec 2016, 2:33 PM
Ajaykumar Ghadmode
Ajaykumar Ghadmode - avatar