Advertisements
Advertisements
Question
Given: int p=55/0;
Name the type of error in the given statement:
Options
Syntax
Logical
Runtime
Executional
MCQ
Solution
Runtime
Explanation:
Dividing by zero is not noticed during compilation, but it does result in a runtime problem (particularly an ArithmeticException in Java).
shaalaa.com
Is there an error in this question or solution?