3 ms·
Java Puzzlers[0] has a few entries similar to this. Some of the entries are things that would trip you up (but logically makes sense) rather than oddities, but
by noxToken 9y ago
Java Puzzlers[0] has a few entries similar to this. Some of the entries are things that would trip you up (but logically makes sense) rather than oddities, but it's an interesting read. Note that the book is from 2005 and uses Java 5.
[0]: https://www.amazon.com/Java-Puzzlers-Traps-Pitfalls-Corner/dp/032133678X https://www.amazon.com/Java-Puzzlers-Traps-Pitfalls-Corner/d...
- alangpierce 9y agoYou can also search YouTube for "Java Puzzlers" for a few talks by Josh Bloch (the author) where he goes through more puzzlers.