KnowledgeBoat Logo

Computer Applications

Give two differences between Syntax error and Logical error.

Input in Java

165 Likes

Answer

Syntax ErrorLogical Error
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.Logical errors need to be found and corrected by people working on the program.

Answered By

95 Likes


Related Questions