Asked by Mariam Al-khayyat on Jul 21, 2024

verifed

Verified

Which of the following is a relational operator?

A) =
B) ==
C) !
D) &&

Relational Operator

Operators used in programming languages to compare two values, determining their relationship (such as equals, greater than, less than).

==

In many programming languages, "==" is the equality operator that tests if two values are equal.

  • Understand the use and functionality of relational operators in Java.
verifed

Verified Answer

PR
Parveen rawatJul 27, 2024
Final Answer :
B
Explanation :
The double equal sign (==) is a relational operator used for comparison in programming languages such as Java, C++, and Python. It is used to check if two values are equal or not.