What are the types of program errors?
Answer:
There are mainly four types of program errors:
(i) Syntax errors – Errors that occur when the rules (syntax) of a programming language are violated.
(ii) Semantic errors – Errors that occur when the code follows the syntax but is improperly structured or logically incorrect.
(iii) Logical errors – Errors that occur when the program runs but does not produce the expected output due to incorrect logic.
(iv) Run-time errors – Errors that occur during execution, usually due to unavailable resources or unexpected values.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.