Java is a statically typed, object-oriented, garbage-collected language that compiles to bytecode for the Java Virtual Machine. The JVM runs on almost any system and hosts other languages too. Java and its platform power large enterprise systems, back ends, Android's history and big-data tools, and it is valued for its libraries, tooling and long-term compatibility.
Key concepts
- Classes and interfaces: nearly everything is a class; interfaces define contracts and enable polymorphism.
- Bytecode and the JVM: source compiles to bytecode, which the virtual machine loads, verifies and compiles at run time.
- Garbage collection: memory is reclaimed automatically; knowing how it behaves helps with performance.
- Generics and collections: type-safe containers, lists, maps and streams in the standard library.
- Exceptions: checked and unchecked errors, and try-with-resources for cleanup.
- Concurrency: threads, executors, locks and concurrent collections.
Vocabulary
- JDK and JRE: the development kit with compiler and tools, and the runtime to run programs.
- JIT: just-in-time compiler that turns hot bytecode into machine code.
- Classpath: where the JVM looks for compiled classes and libraries.
- Build tool: Maven and Gradle manage dependencies and builds.
What to study, in order
- Syntax, classes, objects, inheritance and interfaces, with a command-line program.
- The collections framework, generics and streams.
- Exceptions, input and output, and writing unit tests.
- A build tool and dependency management; package a runnable program.
- Threads and the concurrency utilities; then profile memory and garbage collection.
- Read about the JVM's class loading and JIT to understand warm-up and performance.