HTTP and Network Programming
- HttpClient. The built-in HttpClient sends requests sync or async: timeouts configured, redirects controlled.
- Sockets. Beneath HTTP sit sockets: byte streams between machines, where protocols are just agreements.
- Timeouts everywhere. Every network call sets a timeout: the JVM default of waiting forever is a production outage on a timer.
JDBC and Database Access
- JDBC. JDBC is Java’s database door: connections, statements and result sets over any relational engine.
- PreparedStatement. A PreparedStatement parameterises SQL: injection closed, plans reused, types checked.
- Connection pooling. Connections are expensive: a pool keeps warm ones ready and caps how many the database must bear.
Reliable External Integrations
- Retries with backoff. Transient failures deserve retries with backoff and a cap: hammering a sick service makes two outages.
- Idempotency. Safe retries require idempotent operations: the same call landing twice must land once in effect.
- Bulkheads. Isolate integrations with their own pools and timeouts: one slow dependency must not drown the whole service.
Before and after this level
- Before: Level 10: Reflection & Language Infrastructure: Annotations, Reflection, Dynamic Language Features and Trade-Offs.
- Next: Level 12: Testing: Unit and Integration Tests, Mocking and Test Design, Maintainable Java Test Suites.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Java Level 11: Networking & Data cover?
HTTP and Network Programming, JDBC and Database Access, Reliable External Integrations: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 10: Reflection & Language Infrastructure, which covers Annotations, Reflection, Dynamic Language Features and Trade-Offs.