Java for beginners: syntax, classes and collections
12 steps · about 13 h 35 min · Beginner
- 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.
- 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.
- 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.
- 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.
- Java Class and Objects (With Example) (article, Programiz, 15 min)
A second, more visual explanation with short runnable examples, to reinforce classes and objects.
- Lesson: Introduction to Collections (tutorial, Oracle, 10 min)
Explains why the Collections Framework exists and how interfaces and implementations fit together.
- Java Collections Framework (reference, W3Schools, 15 min)
A quick table of List, Set and Map classes, with guidance on when to use each.
- 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.
- Summary of Implementations (tutorial, Oracle, 10 min)
Helps you pick a concrete class, such as ArrayList, HashSet or HashMap, for each interface.
- 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.
- Lesson: Aggregate Operations (tutorial, Oracle, 30 min)
Introduces streams, a modern way to filter and process the collections you've just learned.
- 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.