Why learn Java
Java is a general-purpose, statically typed, object-oriented language created by James Gosling at Sun Microsystems and released in 1995. You write .java source files, the compiler javac turns them into bytecode (.class files), and the Java Virtual Machine (JVM) runs that bytecode on any operating system. That is the old slogan "write once, run anywhere": the same compiled program runs on Windows, macOS and Linux without a rebuild.
Thirty years on, Java is not a legacy curiosity. A new version ships every six months, and every two years one becomes a long-term support (LTS) release that companies standardise on. This handbook teaches Java 21 LTS — records, var, switch expressions, text blocks, pattern matching and sealed types — and every example also runs unchanged on newer JDKs.
- Backend services — Spring Boot is the most common way large companies build web APIs; banks, insurers, airlines, e-commerce and payment systems run on it.
- Android — the Android SDK is a Java API; Kotlin is now preferred for new apps, but it runs on the same platform and millions of lines of Android code are Java.
- Big data and streaming — Apache Kafka, Hadoop, Elasticsearch, Cassandra and Flink are written in Java, and Spark runs on the JVM. Data engineers read Java stack traces every week.
- Enterprise and fintech — long-lived systems where a strict compiler, mature tooling and a huge hiring pool matter more than terse syntax.
| Role | Where Java shows up | What to learn after this handbook |
|---|---|---|
| Backend developer | REST APIs, microservices, payment and order systems | Spring Boot, JPA/Hibernate, SQL |
| Android developer | Mobile apps, SDKs | Kotlin, Android Studio, Jetpack |
| Data engineer | Kafka producers and consumers, Spark jobs, Flink pipelines | Kafka, Spark, Scala |
| QA / SDET | Selenium and API test suites | JUnit 5, TestNG, REST Assured |
