Category: Uncategorized

  • Object Identity in Java

    In an object oriented world there are basically two types of ‘equality’ knocking around. The simplest version is pure object identity. In this form, two variables are ‘identical’ only if they refer to the exact same object on the heap. Conversely, if two variables refer to different in-memory objects then they are not identical regardless…