Relational - Comparison Operators
Relation for Number Variables
Java supports: > >= < <=
Relation for String Variables
Strings are compared letter by letter in order of position in the alphabet All capital letters have a lower value than any lower case letters
Strict Equality Operator ==
Are both the value and type of two variables the same, without conversion?
Comparing Different Types
Different types will be converted to a common value first/ String to Number Boolean to Number Object toString()
Equality for Reference Variables
Reference variables are not equal if they don't both reference the Object in memory.
Equality for Primitive Variables
Using comparison operator with two == means two values on either side of operator have the same value.
Test Inequality , != and !==
Values are converted before comparing Loose and strict inequality are both supported