About this course

Java from First Principles is a free course that teaches Java to someone who has never programmed, starting from what a program is and ending with a 2D game of your own design.

Who it is for

Anyone who wants to understand Java properly rather than copy it. Every idea is explained before it is used, the lessons show what the computer actually does when your code runs, and each lesson shows the errors you are likely to meet and how to read them. If you have programmed before, the early lessons will go quickly, but they are worth reading: they build the picture the later ones rely on.

What you need

A computer running Windows, macOS or Linux, time (each lesson is long and is meant to be worked through, not skimmed), and three free tools: a JDK, VS Code and Python 3. Start here explains how to install them and how the course works.

How the course is released

The course has eight parts, released one at a time. The home page shows which parts are out and which comes next, and the changelog lists every release and every correction. To hear when a new part is out, use the Get notified link at the bottom of any page.

Found a mistake?

If something on a page is wrong or unclear, or the checker rejects an answer you are sure is correct, please say so: reply to any of the release emails, or leave a comment on the release post. Corrections are listed in the changelog.

Terms of use

You are welcome to read the course, download the course kits and use them for your own learning, free of charge. Please do not republish the lessons or the kits elsewhere; link to this site instead.