Choose a part
Java Foundations
Write your first Java programs: output, variables, data types, operators, input, decisions and loops.
- 1Meet Java & Your First Program3 h
- 2Variables, Data Types & Operators4 h
- 3Input & Output: Scanner, printf & Math3.5 h
- 4Decisions: if, else & switch3.5 h
- 5Loops: for, while & do-while4 h
Methods, Arrays & Strings
Organise code into methods, store many values in arrays, and master text with String and StringBuilder.
- 6Methods: Reusable Blocks of Code4.5 h
- 7Arrays: Storing Many Values5 h
- 8Strings and StringBuilder4.5 h
Object-Oriented Java
Model real things with classes and objects, protect data, reuse code with inheritance, and handle errors.
- 9Classes and Objects5 h
- 10Encapsulation, static and Packages4.5 h
- 11Inheritance and Polymorphism5 h
- 12Abstract Classes and Interfaces4.5 h
- 13Exception Handling4.5 h
Collections, Generics & Streams
Use enums, records and generics, store data in Lists, Sets and Maps, and process it with lambdas and streams.
- 14Wrappers, Enums, Records and Generics4.5 h
- 15Collections I: List, Set, Queue5 h
- 16Collections II: Maps and Sorting5 h
- 17Lambdas and the Stream API5 h
Advanced Java & Capstone Projects
Files and dates, multithreading, databases with JDBC, modern Java features, and complete projects.
- 18Files and Date-Time4.5 h
- 19Multithreading and Concurrency4.5 h
- 20JDBC Databases and Modern Java5 h
- 21Capstone Projects12 h
Course plan at a glance
What makes these slides special
- ▶ Run on every code example: watch the output appear (all outputs were produced by real Java 21)
- Step-through tracer: run a program line by line and watch variables, objects, method calls and recursion
- Code Lab (press L): edit code, copy it, download the .java file or open an online Java compiler
- Playgrounds: jshell sessions, substring visualiser, loop ranges, array/list/map/queue animations, stack and heap memory diagrams
- Real JDBC database examples with SQLite, file I/O with the files shown, and multithreading demos
- Each module: real-project diagram, short concept boxes, lab, 10 practice examples (Easy, Medium, Hard), recap and quiz
Setup for students
- Install JDK 21 (Eclipse Temurin from adoptium.net); check with
java -version - Install VS Code + Extension Pack for Java, or IntelliJ IDEA Community
- Make a folder
D:\java-practice; run any file withjava Main.java - Module 20: download sqlite-jdbc jar (github.com/xerial/sqlite-jdbc) into the folder; run with
java -cp ".;sqlite-jdbc.jar" Main.java - No JDK yet? Use the Online compiler button in the Lab (needs internet)
Controls: → next ← back M menu L Lab F fullscreen Esc close Lab