10 modules · 39 tutorials
Java Programming tutorials
Learn Java the way industry uses it: object-oriented design, collections, generics, exceptions, streams, threads and JDBC.
Module 01
Getting Started with Java
What Java is, how the JDK, JRE and JVM fit together, and how to write, compile and run your first program.
Module 02
Java Basics
Variables and the eight primitive types, operators, type conversion, reading input with Scanner, and working with String.
Module 03
Control Flow and Arrays
Making decisions with if and switch (including Java 14 switch expressions), repeating work with loops, and storing sequences of values in arrays.
Module 04
Methods
Defining and calling methods, parameters and return values, Java's pass-by-value rule, overloading, variable-length arguments and recursion.
Module 05
Classes and Objects
Designing your own types: classes, objects and references, constructors, the this keyword, static members, and encapsulation with access modifiers.
Module 06
Inheritance, Polymorphism and Interfaces
Reusing and specialising classes with extends and super, overriding and dynamic dispatch, abstract classes, interfaces with default methods, and sealed hierarchies.
Module 07
Core Java APIs
Wrapper classes and autoboxing, building text efficiently with StringBuilder, the methods every class inherits from Object (equals, hashCode, toString), enums and records.
Module 08
Exceptions and File Handling
Handling errors with try, catch and finally, checked versus unchecked exceptions, try-with-resources, writing your own exception classes, and reading and writing files with java.nio.file.
Module 09
Collections and Generics
The Java Collections Framework — List, Set, Map, Queue and Deque — iterators, sorting with Comparable and Comparator, and writing your own generic classes and methods.
Module 10
Lambdas, Streams, Concurrency and JDBC
Functional-style Java with lambdas, method references and the Streams API; running work in parallel with threads and executors; protecting shared data; and talking to databases with JDBC.