.Equals and == both used to compare.But internal working of both little bit different.
.Equals work fine reference type and == work fine value type.
Like if we string builder.The StringBuilder is reference type.
StringBuilder a = new StringBuilder(“Pavan”);
StringBuilder b= new StringBuilder(“Pavan”);