Java primitives and instanceof: Why the rule is changing
Java primitives and instanceof: Why the rule is changing For decades, Java has drawn a clear distinction between primitive types and reference types, with each category following its own rules in the language. One of those rules was simple: instanceof applies…