Choose the decision supported by each API contract. These are local self-check questions.
Read the lessons
- Java HTTP query values: encode data without changing URI structure
- Java HttpClient redirects: check the next origin before resending
- Java HttpClient deadlines: separate connection and request timeouts
- Java streaming HTTP bodies: close the stream and cap retained bytes
- Java Retry-After: parse a bounded server delay without inventing a retry
- Java HttpClient cookies: make session storage an owned policy
- Java RecursiveTask: split work only above a measured threshold
- Java ForkJoinPool: own a custom pool and its shutdown
- Java ManagedBlocker: declare a rare blocking wait to the pool
- Java fork/join failures: one failed task does not roll back sibling work
- Java parallel streams: reduce values instead of mutating shared results
Common Mistakes
Do not mistake a timeout, redirect, shared pool, or task exception for a complete business policy.
