Computer Applications

The statement (1 > 0) || (1 < 0) evaluates to

  1. 0
  2. 1
  3. false
  4. true

Java Operators

4 Likes

Answer

true

Reason — Logical OR operator returns true when even one of the conditions is true. Here condition (1 > 0) is true. Thus, the OR operator results in true.

Answered By

2 Likes


Related Questions