Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected a typo

...

Code Block
bgColor#ccccff
public void arrayReferencesEqual(int[] arr1, int[] arr2) {
  arr1 == arr2; 
}

Risk Assessment

Using the equals() method or relational operators with the intention of comparing array contents produces incorrect results, which can lead to vulnerabilities.

...