Computer Applications

Due to which of the following errors, a program does not provide correct result although it has no grammatical mistake?

  1. Logical
  2. Syntax
  3. Type mismatch
  4. None of the above

Input in Java

10 Likes

Answer

Logical

Reason — Logical error occurs when the logic is incorrect. Thus, the program does not produce the desired result although it is syntactically correct and compiles and executes fine.

Answered By

8 Likes


Related Questions