Comment Comment by Macha Java:* Reassigning interned integers via reflection* private fields work on a class level, not an instance level, i.e. Instances of a class can read private fields of other instances of the same class.* Arguably package-private fields as the docs like to avoid mentioning they exist.* ==, particularly in regards to boxed types.* List<String> x = new ArrayList<String>() {{ add("hello"); add("world"); }};* The behaviour of .equals with the object you create above* Type Erasure parent Macha 11 years ago
* Reassigning interned integers via reflection
* private fields work on a class level, not an instance level, i.e. Instances of a class can read private fields of other instances of the same class.
* Arguably package-private fields as the docs like to avoid mentioning they exist.
* ==, particularly in regards to boxed types.
* List<String> x = new ArrayList<String>() {{ add("hello"); add("world"); }};
* The behaviour of .equals with the object you create above
* Type Erasure