Learn Java
Build strong programming foundations with a language made for big ideas.
Start learning 6 lessons · about 1.5 hours · free
About this track
Learn Java from the first class and main method through variables, conditions, loops, arrays, methods, and objects. Every lesson pairs clear explanations with a quiz and a Java program you can compile and run against sample inputs.
Before you start
- No prior programming experience needed.
- A modern browser with JavaScript enabled.
- A network connection is needed to compile and run exercises with Compiler Explorer.
- Unit 1 · 0/3 lessons
Getting started
Run a class and use Java’s basic values and expressions. Badge: First class
- 0x001Run your first Java programMeet the main method and print a message from a Java class. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x102Name values and choose typesStore numbers, text, and true/false values in variables. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x203Calculate with expressions and stringsUse arithmetic operators and combine values to build output. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- Unit 2 · 0/2 lessons
Decisions and repetition
Choose a path, loop over work, and process arrays. Badge: Flow controller
- 0x304Choose a path with conditionsCompare values and use if, else if, and else to make decisions. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x405Repeat work with loops and arraysVisit each array item and accumulate a result with a loop. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- Unit 3 · 0/1 lessons
Methods and objects
Organize reusable behavior and data into classes. Badge: Object builder
Gostou da aula? 😆👍
Apoie nosso trabalho com uma doação: