ICSE Class 10 Computer Applications Question 23 of 32

Input in Java — Question 1

Back to all questions
1
Question

Question 1

A programmer wrote the following statement:
    netPay = grossPay + providentFund;
instead of:
    netPay = grossPay - providentFund;
Assuming all the unseen code is correct, what kind of error is it?

  1. Syntax error
  2. Runtime error
  3. Logical error ✓
  4. None of these
Answer