Versions Compared

Key

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

...

Autoboxing automatically wraps a value of a primitive type with the corresponding wrapper object. The Java Language Specification (JLS), §5.1.7, "Boxing Conversion" [JLS 2005], explains which primitive values are memoized during autoboxing:

...

[Bloch 2009]

Puzzle 4, "Searching for the One"

[JLS 2005]

§5.1.7, "Boxing Conversion"

[Pugh 2009]

Using == to Compare Objects Rather than .equals

[Seacord 2015]Image result for video icon EXP03-J. Do not use the equality operators when comparing values of boxed primitives LiveLesson

...