Reference Docs — Where You Look Things Up at 11 PM IST¶
When a Stack Overflow answer is 8 years old and mentions Java 8, you need a hierarchy of trust. This file gives you the lookup order for any question. Bookmark all of these; disable notifications for all of these.
The Lookup Hierarchy¶
For any Java question, check sources in this order until answered:
Official JavaDoc / JDK docs — always first for stdlib
Official framework docs (Spring, Hibernate, JUnit) — for framework-specific
JEP text — for language/JVM features (openjdk.org/jeps/
) Baeldung / Reflectoring / thorben-janssen — secondary tutorial sources
Stack Overflow with year filter — only accept answers from last 3 years unless it’s a canonical old answer
GitHub issues in the actual project — for bugs, edge cases
AI (Claude / ChatGPT) — last, and only to explain something you’ve already partially researched
Tier 1: Official Sources¶
Source |
URL |
What for |
|---|---|---|
JDK 21 API Docs |
Every method in every stdlib class |
|
JDK 25 API Docs |
Latest LTS as of Sept 2025 |
|
Java Language Spec (JLS) |
The rules-lawyer source |
|
Java Virtual Machine Spec (JVMS) |
Bytecode, class file format |
|
JEP Index |
All JEPs, filter by status |
|
Spring Framework Reference |
The primary Spring source |
|
Spring Boot Reference |
docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ |
Boot-specific autoconfig, actuators |
Spring Data JPA Reference |
Repository patterns, query derivation |
|
Spring Security Reference |
Auth, filters, OAuth2 |
|
Hibernate ORM User Guide |
docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html |
Deeper than Spring Data alone |
JUnit 5 User Guide |
Assertions, extensions, parameterized |
|
Mockito docs |
Mocking API |
|
Micrometer docs |
Metrics; the observability primitive |
|
OpenTelemetry Java |
Tracing, in 2026 the default |
|
Apache Kafka docs |
The |
|
PostgreSQL 16 docs |
SQL truth |
Bookmark these in a browser folder called “Java Refs” and pin the folder. When you’re stuck at 11 PM IST, muscle memory should take you here before Google.
Tier 2: Trusted Tutorial Sites¶
Site |
Focus |
Verdict |
|---|---|---|
Spring, Java how-to |
#1 Google result for most Spring queries. Article quality varies wildly — verify with official docs. Older articles (pre-2022) sometimes wrong for Spring Boot 3.x. |
|
Architecture, testing, hexagonal |
Long-form and thoughtful. Author Tom Hombergs also wrote “Get Your Hands Dirty on Clean Architecture.” |
|
Hibernate & JPA depth |
The single best free Hibernate resource. Newsletter is worth subscribing to. |
|
Older Java fundamentals |
Aging (2015-2020 vintage) but concept explanations still solid. Use for classic OOP/collections topics. |
|
Architecture bliki |
Slow-cadence, dense. PoEAA patterns explained. |
|
Java performance, Hibernate |
Practical benchmark write-ups. |
|
Spring Cloud, K8s |
Working examples with GitHub repos. |
|
General Java tutorials |
Uneven, but good for niche how-tos. |
|
Java + Spring how-to |
India-based, high volume, sometimes shallow. Use as tie-breaker between Baeldung and official. |
Tier 3: When Docs Aren’t Enough¶
Source |
When to use |
|---|---|
Stack Overflow |
Google “[error message] site:stackoverflow.com”. Add year filter: after:2023. |
GitHub issues |
Search |
JetBrains YouTrack |
For IntelliJ bugs: youtrack.jetbrains.com/issues/IDEA |
r/java, r/springboot |
For “is this idiomatic” questions. Not for error-hunting. |
Discord: Java official |
Real-time help for weird bugs. |
AI as Reference — The Rule¶
AI (Claude, ChatGPT, Gemini, Cursor) hallucinates method signatures, deprecated APIs, and non-existent Spring annotations with confidence. In Java, this is worse than in Python because Java is more precise — you catch AI lies at compile time, which wastes cycles.
Rule for months 1-8: Do NOT ask AI “how do I X in Java?” as your first move. Read the JavaDoc / Spring reference first. Ask AI only after you have a partial answer, to clarify. See 11_tools_setup/07_ai_agent_workflow_discipline.md.
The Docs You Do NOT Need to Read Cover-to-Cover¶
JLS / JVMS — dip in when a JEP references a section. Don’t read linearly.
Spring Framework Reference (2000+ pages) — read the chapter for the feature you’re using.
Hibernate User Guide (long) — same.
Reference docs are a random-access data structure. Treat them that way. The urge to “read the whole Spring docs” is procrastination.
Return to README.md · Next: ../10_communities/README.md