"==" Compares the bits in two variables. Check if two variables are the same. Zeros on the left end don't matter.
int a = 2; byte b = 3; (a == b); // true
.equals() Check the equality of two objects that are different in the heap but they are the same type. It depends on what makes sense for that particular type.
String x = "a";