Computer Applications

Given: int p=55/0;
Name the type of error in the given statement:

  1. Syntax
  2. Logical
  3. Runtime
  4. Executional

Input in Java

26 Likes

Answer

Runtime

Reason — Division by 0 will result in an infinite value, which is a runtime error.

Answered By

11 Likes


Related Questions