Define the Angle

“= =” :

  1. This operator is used specifically to compare whether two variables have the same value. It is used to compare whether variables have the same value stored in their due memory.
  2. Variables can be divided into basic data type variables and reference data types.
  3. Basic data types compare whether two variables have the same value.
  4. The reference data class type compares the first address of the memory that should be referenced.

“Equal method” :

  1. Used to compare the contents of two independent objects

Implementation perspective

Memory perspective