A collection of Java curiosities and oddities

from blog Kevin Boone's website, | ↗ original
Why does Java have a NullPointerException when it doesn't support pointers? Why does the equality operator compare object references, but the collections framework comparison methods compare object contents? These questions and many more like them will comprehensively fail to be answered in this article.