English

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

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?
Chapter 1.06: Input in Java - EXERCISES [Page 65]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.06 Input in Java
EXERCISES | Q I. 2. | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×