See the original posting on JavaWorld
While learning Java, you’ll occasionally encounter a language behavior that leaves you puzzled. For example, what does expression
new int instanceof Object returning
true signify about arrays? In this post, I’ll examine some of Java’s language oddities.
Arrays are objects
A long time ago, while writing about message formatters, I encountered something strange in Java’s
java.text.MessageFormat standard library class. Consider the following pair of formatting methods: