Name the type of error (syntax, runtime or logical error) in each case given below:
- Division by a variable that contains a value of zero.
- Multiplication operator used when the operation should be division.
- Missing semicolon.
Views 18
Answer:
Error types:
- (i) Runtime error: Division by zero occurs at runtime.
- (ii) Logical error: Incorrect operator used results in wrong computation.
- (iii) Syntax error: Missing semicolon results in a syntax error during compilation.
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.