Java View all facts Glossary Help |
syntactic unit > symbol > operator > identity comparison operator |
identity comparison operator comparison table |
Subject | use by | have purpose | return |
---|---|---|---|
!= | to return true if the operands are not equal | a value called its result | |
== | boolean data type | to compare any two variables to test if they are identical, which means they either refer to the same objects or have the same primitive values | a boolean |
Next operator: logical operator Up: operator Previous operator: cast operator