Add experienced-2-3y module: 31 scenario questions (core Java, collections/streams, concurrency, Spring Boot 4.2, JPA N+1, REST problem details, SQL) with 7 asserting tests and 8 transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6u469kis46DspusiL
This commit is contained in:
Ankur Mhatre
2026-11-22 02:01:04 +05:30
co-authored by Claude Sonnet 5.5
parent 4180e746ef
commit 76012dd8c3
36 changed files with 1401 additions and 0 deletions
@@ -0,0 +1,16 @@
== Q18: constructor injection ==
Invoice built with plain new and a lambda, no Spring context: total(100) = 110.0
Invoice from the context (FlatGst 18%): total(100) = 118.0
== Q19: singleton state is shared ==
two getBean(SingletonCounter) calls return the same object: true
caller A next() = 1, caller B next() = 2
two getBean(PrototypeCounter) calls return the same object: false
caller A next() = 1, caller B next() = 1
== Q20: @Transactional and self-invocation ==
TxProbe injected as a Spring proxy: true
probe.inner() -> transaction active = true
probe.outerCallsInner() -> transaction active = false
== Q21: which exceptions roll back ==
RuntimeException after save -> rows added = 0
checked IOException after save -> rows added = 1
checked + rollbackFor = Exception.class -> rows added = 0