answersLogoWhite

0


Best Answer

Syntax error can be found during compilation. Runtime error can be found only when you are trying to execute your program.

Syntax errors are those which are caused by incorrect usage of the programming language. All programming language compilers are designed to detect and report such errors done by the programmer

Runtime errors are those which are caused by incorrect usage of programming logic. for example a runtime divide method will throw a run time error if the divisor is '0' because numerically you cannot divide a number by 0

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Syntax error: The error which are only caught by compilers are the syntax error.For example-missing of semicolon at the termination of statement.

Run time error: The errors which are caught by users but not by the compilers are run time errors.For example-occuring of any exception .

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A runtime error is usually produced as a result of a logic error. A logic error is the result of syntactically correct code that does not complete the requred task, e.g. continuous loop. Can cause the program to halt, causing a runtime error. A runtime error is an error detected whilst a program is executing. E.g. In Operating systems is represented by the Blue Screen of death. Can also be caused by illegal operations such as division by zero, or accessing a non existant memory area.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

Syntax errors occur at compile time whereas run time errors are logic errors.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between syntax error and runtime error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What type of errors we have in Java programming?

syntax error, Runtime error, Longic error


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.


What is the difference between runtime errors and compile time error?

Compile time errors occur do to syntax errors (such as forgetting a semi-colon at the end of a line) and they prevent your program from even compiling. A runtime error is an error in logic in your program. Your program will compile, however while running the program it will throw an error because it tries to do something illegal (such as dividing by 0).


Difference between syntax error and execution error?

Syntax error is when something is wrong with how a code is written. An execution error occurs when the program comes up to something that it cannot handle because it does not have the code for it.


If you put a try block without catch block then wt the error type is it compile time or runtime error?

This is a syntax error, which will be a compile time error.


Difference between runtime error and logical error?

Syntax Errors and Logical ErrorsSyntax errors -- Errors in spelling and grammar. You can use the compiler or interpreter to uncover syntax errors.You must have a good working knowledge of error messages to discover the cause of the error.Logical errors -- Errors that indicate the logic used when coding the program failed to solve the problem. You do not get error messages with logic errors.Your only clue to the existence of logic errors is the production of wrong solutions.There are 3 step to repair runtime errorIf you got runtime error then there is a 94% chance that your computer has registry problems. To repair runtime error you need to follow the steps below:* Step 1 - Download a runtime error repair tool,install this error repair tool.* Step 2 - Click the Repair All Button.It will scan you PC for Free.* Step 3 - Then click the Repair All Button again and your done! It is very easy to repair runtime error.Here are the URL of runtime error repair tool:http://www.fixerrorquick.com/ttfix-runtime_error-zz0005


What is the difference between runtime and compilation?

Compilation is generally the process of parsing the human-readable source code and turning it into machine-readable byte code. Runtime occurs during the execution of the byte code as a program. Examples: A compile-time error is an error that occurs while the source code is being turned into byte code. A runtime error is an error that occurs while the program is executing.


How do you correct syntax error logical error?

Your IDE should include syntax checking, which highlights errors as they occur (similar to a grammar/spell checker in a word-processor). Attempting to compile a program that contains a syntax error will fail to compile, but it should provide a list of all the errors that need to be fixed. If the error is an obvious one, the error list may include a solution to the problem, but you must make the necessary changes manually -- the syntax checker won't modify any code for you, even if the error is an obvious one, such as using . instead of -> on a pointer.


What is error 601?

On a RadioShack TRS 80, It is a Syntax Error "Syntax Error 601"


What is difference between syntx error and logical error?

A syntax error is when you break the grammar rules of the language, such as forgetting to terminate a C++ statement with a semi-colon. A logical error is when your code does not perform as expected, typically due to an assumption that proves to be incorrect.


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


What error is caught when the program execute?

runtime error