This is Java and C # questions We all know that object identities (==) test whether the two objects Examine the same place and object equation (equal law) that two separate (non-identical) objects have the same value or not. But in the case of string object object recognition, the object similarity is similar, for example if two bullion expressions are correct in the statement
string a = "123"; String b = "123"; If (a == b) if (a.Equals (b))
Why is it ?? What is the rationale behind this design decision? Both Java and C # have used memory-saving techniques because wire is irreversible in these languages.
No comments:
Post a Comment