The Relational Operators OperatorDescriptionExample== (equal to)Checks if the values of two operands are equal or not, if yes then condition becomes true.(A == B) is not true.!= (not equal to)Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.(A != B) is true.Java – Basic Operators – Tutorialspoint www.tutorialspoint.com › java › java_basic_operators