Computer Applications
Answer
Syntax Errors | Logical Errors |
---|---|
Syntax Errors occur when we violate the rules of writing the statements of the programming language. | Logical Errors occur due to our mistakes in programming logic. |
Program fails to compile and execute. | Program compiles and executes but doesn't give the desired output. |
Syntax Errors are caught by the compiler. | Logic errors need to be found and corrected by the people working on the program. |
Related Questions
Explain if-else-if construct
Write down the syntax of the following with reference to Java Programming:
(a) to accept an integer value using main( )
(b) to accept a fractional number using main( )
What are the different types of errors that take place during the execution of a program?
Explain if-else construct