Unlocking Java's Code Maze
summary
Hands-on session runs as a 20 exercise live quiz using Slido and runnable Java snippets that demonstrate concrete gotchas and fixes: static init yields 20, raw types cause a ClassCastException on retrieval, string concatenation with mixed operators prints "result is 16", ConcurrentHashMap merge across two threads sums to 2000 and an AtomicInteger increments to 2, CompletableFuture chains get replaced by CompletableFuture.allOf, Virtual Threads via virtualThreadPerTaskExecutor and RandomGeneratorFactory are recommended and the highest score on the quiz is 17/20.
AI-written summary · about
chapters (19)
- 0:00Java challenges introduction
- 4:39Static initialization warm-up
- 7:10Stream partitioning by vowels
- 9:04List grouping with loops
- 11:34Type erasure in generics
- 14:29String concatenation precedence
- 18:03Nested collections flatMap
- 20:09Concurrency with ConcurrentHashMap
- 22:44Atomic variables updates
- 24:48Sealed classes errors
- 27:59Records immutability comparison
- 30:51Immutable lists exception
- 32:38Stream skip limit methods
- 34:49CompletableFuture allOf optimizations
- 39:29Lambda predicate filtering
- 42:46HashMap duplicate keys
- 46:40VirtualThreads vs traditional
- 48:48Random number optimization
- 50:56Q&A








