What are the difference between syntax and runtime errors in pl/sql?
S.no | Run-Time Error | Syntax Error |
---|---|---|
1. | This is a type of error that is encountered while the program is running. | This is an error encountered in the syntax of a sequence of characters or the tokens intended to be written in a particular language. |
2. | It happens due to the occurrence of an illegal operation. | It happens due to the occurrence of grammar rules with respect to the programming language. |
3. | This type of error is detected while the program is still running. | This type of error is detected while compiling the program. |
4. | E.g., Array out of bound, Diving by zero, etc. | E.g., Missing curly braces, semicolons, etc. |
BY Best Interview Question ON 27 Jun 2020