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 mentionedI had been asked this question in an international level competition.My doubt is from Relational Operators and Boolean Logic Operators topic in portion Operators and Control Statements of Java

Answer»

Correct answer is (c) BOOLEAN

The best I can explain: All relational OPERATORS RETURN a boolean value ie. true and false.



Discussion

No Comment Found

Related InterviewSolutions