Computer Applications
The statement (1 > 0) || (1 < 0) evaluates to
- 0
- 1
- false
- 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
Errors occur in a program when :
- Syntax of the programming language is not followed
- the program does not run properly or does not execute at all
- The program produces an incorrect result
- All of the above
Object that share the same attributes and behaviour are grouped together into a/an
- interface
- instance
- alias
- class
The parameters that are passed to the method when it is invoked are called
- formal parameters
- actual parameters
- informal parameters
- void parameters
Give the output of Math.sqrt(x); when x = 9.0.
- 3
- 3.0
- 3.00
- All of these