Java Puzzlers NG: The strange, the bizarre, and the wonderful
summary
A rapid set of live puzzlers that shows failing, surprising specifics: a lambda submitted to ExecutorService compiles as Runnable vs Callable ambiguity so adding or omitting a return changes whether checked IOExceptions are allowed; removing elements inside stream forEach on ArrayList throws forEach-induced NPE (not CME) because mod checks occur after a null-equals; a ternary that picks between int literals and null produces an Integer then NPE on unboxing; practical fixes include use removeIf, prefer Iterator.remove, and enable IntelliJ inspections.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:50Baruch
- 3:58Cup of Rules
- 6:18Show Notes
- 7:09No Cheating
- 7:26Voting
- 9:10Punisher
- 12:30What is the problem
- 16:34Chuck Norris
- 21:56Kill them all
- 24:25Double iteration
- 26:17Single abstract method interface
- 31:39Java language specification
- 33:02HDMI test
- 34:23Contextaware keywords
- 39:05The Ultimate Question
- 42:23Types of Expressions
- 46:05Compare
- 48:35Formal parameter
- 49:44Conclusions
- 50:20Advices








