Value Type:- “==” & Equal() method usually compare object by value.
Reference Type:- “==” compares whether both the reference point to same object.
Equal() returns true if value at reference point to the object are equivalent.
there is an exception here for string that “==” compares value rather then object identity.
In the below example:- for value type is obvious, but for reference types s1 & s2 are different objects so it will return false where as both of objects are equivalent so it will return true.