Which operator is used to compare two values in Java?

Explanation:
== checks equality of two primitive values.