11 Crazy Things I Didn't Know You Could Do With Java Until I Got...
summary
Certifies learning 11 concrete Java surprises by running failing unit tests and fixing them live: examples include stream.sorted throws ClassCastException at runtime when elements lack Comparable, static interface methods must be called on the interface name (not via an instance), and float division by zero yields Infinity instead of ArithmeticException. Other fixes show var with array syntax quirks, enum constants with anonymous subclasses, overload resolution preferring widening over boxing, array.clone being shallow, Integer caching behavior, and nuanced functional‑interface rules; code and tests live on GitHub.
AI-written summary · about
chapters (11)
- 0:00Intro
- 5:15Arrays
- 7:50Stream Elements
- 10:10Static Methods
- 12:35Conference enum
- 14:25Division by zero
- 16:10Method overloading priorities
- 18:45Talk ratings
- 20:55Talk array
- 22:50Wrapper objects
- 24:40Functional interfaces
related talks
16m8 Java quirks in 16 minutes
21mWat? That’s Possible in Java?
40mJava Puzzlers, Strange Loop Edition
32mSecrets of Java - What the Tutorials Don't Tell You
42mPreparing for the Java 21 Certification (or Learning New Features)
50mModern Java Puzzlers
54mJava Puzzlers NG: The strange, the bizarre, and the wonderful
45mPreparing for the Java Cert and Learning New Features (Part 1)
