
This course contains the use of artificial intelligence.
Most Java developers lose hours to bugs they could fix in minutes. This course gives you a repeatable method to find the real cause, prove it, and fix it for good.
Who this course is for
Java developers with 0-3 years of experience who still debug with System.out.println
Junior developers who want to be trusted with production issues
Spring Boot developers who want to add AI features responsibly
Career switchers who know Java syntax and need professional troubleshooting skills
Teams that want a shared, evidence-based debugging process
What you will learn
Read stack traces and “Caused by” chains in seconds
Reproduce any bug on demand with a minimal JUnit 5 test
Use conditional, logging and exception breakpoints in IntelliJ
Prove the root cause with a hypothesis, not a hunch
Fix bugs with a failing-test-first workflow
Diagnose deadlocks and hangs with jcmd thread dumps
Find memory leaks using heap histograms and the dominator tree
Profile CPU and allocation hot spots with Java Flight Recorder
Use AI assistants safely: redaction, ranked hypotheses, mandatory verification
Build a Spring AI debugging endpoint with structured output
Requirements
Basic Java knowledge (classes, interfaces, collections)
JDK 17 or 21 and IntelliJ IDEA Community Edition installed
Maven or Gradle basics helpful. No Spring experience required
An API key for an AI model provider for Section 4 (a free tier or a local model also works)
Final project
You inherit OrderService, a Java 21 service with five planted defects: a null pointer, a data-size equality bug, a collection modification bug, a memory leak and a deadlock. You write a bug report and a failing test for each, prove each root cause with JDK tools, and fix it. Then you build a Spring AI endpoint, POST /triage, that redacts sensitive data from a stack trace and returns ranked hypotheses with a verification step for each. You score your work with the included rubric.