Abstract

Value Comparison

  • We can’t use == to compare OOP Object, because == compares the value holding by the variable. However, variables are only holding the memory pointers to the OOP Object
  • So if we want to compare the value of OOP Object, we need to use the equals() method

Resource Demanding