0
comparing object
example when the output is true,because all the time we compare refrence then in any code the output will be false only.
1 Réponse
+ 7
objects are given there own unique refrenece although they might look the same they are 2 diffrent objects of the same class,
Strings are also objects but comparing these is diffrent as there stored in the string pool if you have 2 strings with the same value they are both the same object unless you create a new string.