Loading topic
== and equals for objects. You should also have used generic collections such as List<Integer>.2 min readint, long, double, boolean, and char, and that you have basic experience with classes, objects, ==, equals, and generic collections such as `List<Integer2 min readint and long, basic classes and objects, == and equals, and generic collections such as List<Integer>. The goal is to make implicit primitive-to-object conversions visible so you can predict their behavior and failures.2 min read==, equals, and basic generic collections such as List<Integer> and Map<String, Integer>. The focus is choosing the correct wrapper method when data must cross a boundary, such as a text file, command-line argument, or use2 min read==, equals, and basic generics. It also assumes that you have seen autoboxing, where Java converts a primitive such as int into its wrapper object, Integer.2 min read==, equals, and generic collections. This chapter focuses on why two Integer objects can sometimes compare equal with ==, and why that result is unsafe to depend on.2 min read==, equals, and generic collections. The focus is how Java compares wrapper objects such as Integer and Double.2 min readint, wrapper classes such as Integer, and basic List and Map use with generics. You should also know that null means that a reference does not point to an object.2 min read==, equals, and generic collections. This chapter focuses on how Java chooses between overloaded methods when several conversions could make a call compile.2 min read==, equals, and basic List and Map usage with generics.2 min read==, equals, and basic List and Map use. This chapter focuses on two double values that make equality behave differently from many developers expect: NaN and negative zero.2 min readint stores a value directly, while Integer stores a reference to an object.2 min read