Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In JDK 1.6.0_10, the output of this code is 0. In this code, we want to count the same numbers of array list1 and array list2. Undoubtedly, the result are result is not the same as our expectation. But if we can set more caches inside Integer, then the result may be different!

...