Learn Java
Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more.
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary16 hoursProjects
14Prerequisites
None
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
Syllabus
16 lessons • 14 projects • 15 quizzesCertificate of completion available with Plus or Pro
Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Projects in this course
- practice Project
Planting a Tree
Write your first Java program from scratch by introducing yourself to users and planting a tree for them. You'll practice creating a class, defining the main method, and organizing print statements. - practice Project
Java Variables: Mad Libs
In this project, we're going to practice creating variables and printing. We're going to put your skills to the test by generating a story, Mad Libs style. - practice Project
Math Magic
It's time to build fluency with operators in Java. In this project, we're going to practice arithmetic in Java so you can hone your skills and feel confident taking them to the real world. Why? Practicing computing integer values with Java's arithmetic operators will help you with a wide, wide range of Java tasks in the future. What's next? Some math, more Java, and a sprinkle of magic. You got this!
Earn a certificate of completion
Show your network you've done the work by earning a certificate of completion for each course or path you finish.- Show proofReceive a certificate that demonstrates you've completed a course or path.
- Build a collectionThe more courses and paths you complete, the more certificates you collect.
- Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn Java course ratings and reviews
- 5 stars
- 4 stars
- 3 stars
- 2 stars
- 1 star
- Really helped me grasp the basics of Java that I couldn't really understand otherwise. I highly recommended this for new programmers or even lightly experienced ones such as myself and I will 100% recommend this to anyone I know who is into coding.Seamus B.Verified Learner
- Easy to follow and well explained. The concepts cover the range of topics that are vital to getting started in Java and challenging enough to be useful, but with enough help to let you understand if you get stuck.Chris J.Verified Learner
- I loved this course. It was very on pace for somebody who wanted to learn how to program properly. I've bene trying to learn for many years, but no one has explained it so simply as Codecademy. Thanks Codecademy!Mihai C.Verified Learner
Our learners work at
Frequently asked questions about Java
Java is an open-source, general-purpose programming language known for its versatility and stability. It’s used for everything from building websites to operating systems and wearable devices. You can even find Java in outer space, running the Mars rover.
Join over 50 million learners and start Learn Java today!
Looking for something else?
Related resources
- Article
Java and the Command Line
A brief overview of running Java through the command line. - Article
Java Program Structure
Java programs have a specific structure. Let's take a closer look at the Hello World program — line by line! - Article
Java Style Guide
Let's look at a few Java standards before we jump into the syntax.
Related courses and paths
- Skill path
Study for the AP Computer Science A Exam (Java)
Master the core concepts covered in AP Computer Science A Exam and gain a solid understanding of programming and fluency in Java.Includes 8 CoursesWith CertificateBeginner Friendly19 hours - Free course
Intro to Java
Get started with Java by learning about the basics of a Java program and variables!Beginner Friendly6 hours - Free course
Java for Programmers
Take this course meant for experienced programmers and learn Java, one of the world's most popular languages.Intermediate1 hour
Browse more topics
- Cloud computing2,283,478 learners enrolled
- Mobile development1,329,771 learners enrolled
- Code foundations7,329,570 learners enrolled
- For business3,298,911 learners enrolled
- Computer science5,784,741 learners enrolled
- Java1,186,823 learners enrolled
- Web development4,906,841 learners enrolled
- Data science4,422,981 learners enrolled
- Python3,571,883 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.