Question: What is the difference between a.Equals(b) and a == b?
- The .Equals method compares reference identities while the == compares contents.
- The .Equals method compares primitive values while == compares all values.
- The .Equals method compares contents while == compares references reference identity.
- The .Equals method compares reference type while == compares primitive value types.
Answer: The correct answer of the above question is Option C:The .Equals method compares contents while == compares references reference identity.