Joseph Williamson wrote:What's the difference?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Afraid that is incorrect. A value type is a reference type. Read this FAQ for more details.Salil Wadnerkar wrote:In simple terms, == is used for comparing value types, while .equals is used for reference types.
Campbell Ritchie wrote:
Afraid that is incorrect. A value type is a reference type. Read this FAQ for more details.Salil Wadnerkar wrote:In simple terms, == is used for comparing value types, while .equals is used for reference types.
I obviously misinterpreted that as value objects; sorry for my mistake.Stephan van Hulst wrote:. . . In my understanding, Salil is correct. . . .
Don't get me started about those stupid light bulbs. |