<code>Integer a = 5; Integer b = 5; a == b</code> is
- A
Always true
- B
Throws NPE
- C
Compile error
- Dcheck_circle
True due to small-integer caching (-128 to 127)
Explanation
Java caches small Integers; <code>valueOf(5)</code> returns the same cached object.