How do Java’s equality tests (`==`) work between same primitives (e.g. int, char) and what is most efficient?
How do Java’s equality tests work between primitives? I’m specifically looking for efficiency (and speed) within single-type comparisons. Is the char == char
comparison faster than int == int
?