Sign Up
Start free course

Course

Free

Learn Java

Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more. 

249,016 recent learners

Syllabus

11 lessons • 14 projects • 15 quizzes

Expand all sections

1

Hello World

Welcome to the world of Java programming! Java is a popular object-oriented programming language that is used in many different industries.

Lesson

Hello World

Article

Java Program Structure

Hello World

Quiz

Plating a Tree

Project

What is an IDE?

Article

2

Variables

Learn about datatypes in Java and how we use them. Then, practice your skills with two projects where you create and manipulate variables.

Lesson

Learn Java: Variables

Java Variables Quiz

Quiz

Java Variables: Mad Libs

Project

Learn Java: Manipulating Variables

Lesson

Java Variable Manipulation Quiz

Quiz

Math Magic

Project

3

Object-Oriented Java

Learn about object-oriented programming in Java. Explore syntax for defining classes and creating instances.

Video

Classes and Objects

Java: Introduction to Classes

Lesson

Intro to Java Classes

Quiz

Learn Java: Methods

Lesson

Java Methods Quiz

Quiz

A Basic Calculator

Project

Build A Droid

Project

4

Conditionals and Control Flow

Conditionals and control flow in Java programs.

Lesson

Conditionals and Control Flow

Conditional Operators

Lesson

Conditionals and Control Flow

Quiz

A Simple Car Loan Payment Calculator

Project

Continents and Cities

Project

5

Arrays and ArrayLists

Build lists of data with Java arrays and ArrayLists.

Lesson

Learn Java: Arrays

Java Arrays Quiz

Quiz

Learn Java: ArrayLists

Lesson

Java ArrayList Quiz

Quiz

Desert Island Playlist

Project

7

String Methods

The Java String class provides a lot of useful methods for performing operations on strings and data manipulation.

Lesson

String Methods

String Methods

Quiz

DNA Sequencing

Project

8

Access, Encapsulation, and Static Methods

Let’s dive deeper into classes and learn about some of their more advanced features.

Lesson

Access, Encapsulation, and Scope

Static Variables and Methods

Lesson

Static Methods of the Math Class

Article

Quiz

Access, Encapsulation, and Scope

Static Variables and Methods

Quiz

9

Inheritance and Polymorphism

Dive deeper into object-oriented Java with inheritance and polymorphism.

Lesson

Inheritance and Polymorphism

Quiz

Inheritance and Polymorphism Quiz

Language Families

Project

10

Debugging

Learn about different types of errors in Java and practice finding them.

Lesson

Debugging

Quiz

Debugging

Bug Detective

Project

11

Two-Dimensional Arrays

Take your understanding of arrays and loops to the next dimension! Learn how to create and use two-dimensional arrays.

Lesson

2D Arrays: Java

Quiz

Quiz: 2D Arrays in Java

2D Arrays: Image Manipulation Project

Project

6

Loops

Use loops to iterate through lists and repeat code.

Lesson

Learn Java: Loops

Learn Java: Loops Quiz

Quiz

Fizz Bizz

Project

The Prime Directive

Project

Projects in this course

Reviews from learners

"It is so helpful to have a thoroughly designed curriculum put together for a step-by-step learning journey. The little coding tasks and bigger projects are well designed to reinforce the concepts."

Dan
Codecademy Learner @ Australia

"The courses are hands-on and allow you to practice as you learn so the concepts stick better. Their Career Paths and interview prep content also offer general insights and helpful tips on job searching in tech."

Ly
Codecademy Learner @ USA

"Great courses and very helpful tips for career build-up! I love the learning methods, very complete with projects and quizzes that help you review your knowledge."

Aleksander
Codecademy Learner @ France

Our learners work at

Join over 50 million learners and start Learn Java today!

Start free course

Made with❤️ in NYC © 2022 Codecademy

About this course

Popular for its versatility and ability to create a wide variety of applications, learning Java opens up your possibilities when coding. With it, you’ll be able to develop large systems, software, and mobile applications — and even create mobile apps for Android. Learn important Java coding fundamentals and practice your new skills with real-world projects.

Skills you'll gain

Build core programming concepts

Learn object-oriented concepts

Create Java projects

The platform

Hands-on learning

Don’t just watch or read about someone else coding — write your own code live in our online, interactive platform. You’ll even get AI-driven recommendations on what you need to review to help keep you on track.

Unlock additional features with a paid plan

Practice projects

Guided projects that help you solidify the skills and concepts you’re learning.

Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.

Assessments

Earn a document to prove you’ve completed a course or path that you can share with your network.

Certificate of completion

See pricing and plans

Planting a Tree

Write your first Java program from scratch by introducing yourself to others and planting a tree for them.

Project

Use Java to write a Mad Libs word game!

Project

Java Variables: Mad Libs

Become a mathemagician and write a small program that performs a mathematical magic trick.

Project

Math Magic

Log In