Skip to content

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.

  1. Introduction to Java 10m
  2. JDK, JRE and JVM 10m
  3. Your First Java Program 12m

Module 02

Java Basics

Variables and the eight primitive types, operators, type conversion, reading input with Scanner, and working with String.

  1. Variables and Data Types 15m
  2. Operators 15m
  3. Type Conversion and Casting 12m
  4. Input with Scanner and Formatted Output 15m
  5. Strings 18m

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.

  1. Conditional Statements 12m
  2. switch Statements and Expressions 14m
  3. Loops 15m
  4. Arrays 18m

Module 04

Methods

Defining and calling methods, parameters and return values, Java's pass-by-value rule, overloading, variable-length arguments and recursion.

  1. Methods 15m
  2. Method Overloading 12m
  3. Recursion 18m

Module 05

Classes and Objects

Designing your own types: classes, objects and references, constructors, the this keyword, static members, and encapsulation with access modifiers.

  1. Classes and Objects 16m
  2. Constructors and this 14m
  3. static Fields, Methods and Blocks 12m
  4. Encapsulation and Access Modifiers 15m

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.

  1. Inheritance 16m
  2. Polymorphism 16m
  3. Abstract Classes and Interfaces 18m

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.

  1. Wrapper Classes and Autoboxing 12m
  2. StringBuilder 12m
  3. equals, hashCode and toString 16m
  4. Enums and Records 16m

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.

  1. Exception Handling 18m
  2. Custom Exceptions and try-with-resources 15m
  3. File Handling 18m

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.

  1. The Collections Framework 14m
  2. Lists and Iterators 15m
  3. Sets and Maps 18m
  4. Generics 18m
  5. Comparable, Comparator and Sorting 15m

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.

  1. Lambda Expressions and Method References 16m
  2. The Streams API 20m
  3. Multithreading and Executors 20m
  4. Synchronisation and Thread Safety 18m
  5. Database Access with JDBC 18m