Important Java Mcq 1

Which of these is returned by greater than, less than, and equal to operators?

a) Integers

b) Floating–point numbers

c) Boolean

d) None of the mentioned

Answer

c) Boolean

Explanation:

Relational operators compare numeric, character string, or logical data. The result of the comparison is either true or false. All relational operators return a boolean value i.e. true or false.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?