Java Puzzlers S03
summary
Live puzzle set walks through concrete gotchas and shows the actual surprising outputs: module-info.java context-sensitive keywords can make obviously-named identifiers illegal only in certain positions; a ternary between null and 42 forces boxing/unboxing and produces a NullPointerException at runtime; short shifts promote to int cause infinite loop when bit-truncation hides changes; double-to-short conversion goes through int so infinities map to min/max then to unexpected shorts; string + char with a unary + prints numeric codepoints. Demos use audience voting and IntelliJ inspections as a fix.
AI-written summary · about
chapters (11)
- 0:00Welcome
- 10:46Java 9 modules puzzle
- 16:06Puzzle with thinker and answer 42
- 22:37Bitwise operations puzzle
- 29:13Type conversion puzzle
- 34:35Superheroes and comparator puzzle
- 41:00Method parameters puzzle
- 42:48String concatenation puzzle
- 46:26Groovy ranges puzzle
- 50:51Object comparison puzzle
- 54:53Summary and tips








