Equality
Equality determines whether two expressions have equivalent values.
Related concepts: OperatorValue
Closest Wikipedia entry: Equality (mathematics) — In mathematics, equality is a relationship between two quantities or expressions, stating that they have the same value, or represent the same mathematical object. Equality between A and B is written A = B, and pronounced "A equals B". In this equality, A and B are distinguished by calling them left-hand side (LHS), and right-hand side (RHS).
Misconceptions about Equality12 documented Misconceptions
Check YourselfAssignCompares
= compares two valuesComparisonWithBooleanLiteral
To test whether an expression is true or false, one must compare it to true or to falseEqualityOperatorComparesObjectsValues
o==p compares the objects referred to by variables o and pEqualsComparesReferences
o.equals(p) compares the references stored in the variables o and p