Q What do you understand by complier error and run time erro
Q. What do you understand by complier error and run time error? Explain by example.
I need a uniqe answer not plagiarized. It needs to be your own words.
Solution
compiler errors are the error when your are not able to run your program. compiler error comes when you have error in syntax of the language. compilation of the program stops immidiately when compiler encouter any error. rest of the prog will not compile. we can not handle compiler errors. we need to fix them to run the program.
eg: if you forget semicolon(;) at the end of the statement or your syntac for object creationis wrong.
Run time error are the errors when your program is compiled but there is a condition that is not logical. eg: divide by zero is the example of that or when we try to delete an element from array from index 7 but there is no value at index 7 in the array.
we can handle run time errors by exception handling.
