Java for beginners: syntax, classes and collections

12 steps · about 13 h 35 min · Beginner

  1. Java Programming for Beginners – Full Course (video, freeCodeCamp.org (YouTube), 4 h)

    A code-along video that covers syntax, ArrayLists, HashMaps and OOP in one pass, so you see the whole picture first.

  2. Trail: Learning the Java Language (The Java™ Tutorials) (tutorial, Oracle, 1 h)

    Oracle's official reference for variables, data types, operators and control flow. Use it to firm up the syntax the video went through quickly.

  3. Objects, Classes, Interfaces, Packages, and Inheritance (guide, Dev.java (Oracle), 25 min)

    Explains what an object and a class are, using a bicycle as the example, before you write your own classes.

  4. Classes and Objects (tutorial, Dev.java (Oracle), 40 min)

    Shows how to write classes with fields, methods and constructors, and how to create objects from them.

  5. Java Class and Objects (With Example) (article, Programiz, 15 min)

    A second, more visual explanation with short runnable examples, to reinforce classes and objects.

  6. Lesson: Introduction to Collections (tutorial, Oracle, 10 min)

    Explains why the Collections Framework exists and how interfaces and implementations fit together.

  7. Java Collections Framework (reference, W3Schools, 15 min)

    A quick table of List, Set and Map classes, with guidance on when to use each.

  8. Lesson: Interfaces (The Java Tutorials > Collections) (tutorial, Oracle, 40 min)

    Goes into how Set, List, Queue and Map behave and how they differ. This is the core of collections.

  9. Summary of Implementations (tutorial, Oracle, 10 min)

    Helps you pick a concrete class, such as ArrayList, HashSet or HashMap, for each interface.

  10. Java Collections & Arrays Tutorial (guide, HowToDoInJava, 30 min)

    A current overview covering Java 9+ factory methods like List.of() and Java 21 additions, with links to deeper tutorials.

  11. Lesson: Aggregate Operations (tutorial, Oracle, 30 min)

    Introduces streams, a modern way to filter and process the collections you've just learned.

  12. Java Programming I (interactive, University of Helsinki MOOC.fi, 5 h)

    A full course with exercises that are checked automatically. Use it to practise classes and collections with real feedback.