Um momento

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.
  1. Unit 1 · 0/3 lessons

    Getting started

    Run a class and use Java’s basic values and expressions. Badge: First class

    1. 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
    2. 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
    3. 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
  2. Unit 2 · 0/2 lessons

    Decisions and repetition

    Choose a path, loop over work, and process arrays. Badge: Flow controller

    1. 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
    2. 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
  3. Unit 3 · 0/1 lessons

    Methods and objects

    Organize reusable behavior and data into classes. Badge: Object builder

    1. 0x506Organize behavior with methods and objectsDefine a reusable method and model data with a simple class. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
Gostou da aula? 😆👍
Apoie nosso trabalho com uma doação: