jario_
Back to overview

Learn Java

Java Basics

Write real Java code in the browser, from your first output through conditions and loops to methods, classes and collections. Tests check your solution right away.

Without an account you can try the first tasks. Your progress then stays in this browser.

Who is this course for?

For beginners with no prior knowledge, and for anyone refreshing Java for school, training, university or a job application.

What you will be able to do

  • Write your own Java programs with variables, conditions, loops and methods
  • Work with classes, objects, lists and collections
  • Read error messages and secure programs with tests

12 chapters, 106 tasks

Each chapter builds on the previous one. Free and Pro chapters are marked.

Chapter 1 · Input and Output0/10 solved

Chapter 2 · Conditions0/10 solved

Chapter 3 · LoopsPro0/11 solved

Chapter 4 · ArraysPro0/11 solved

Chapter 5 · StringsPro0/8 solved

Chapter 6 · Methods and RecursionPro0/8 solved

Chapter 7 · Classes and ObjectsPro0/8 solved

Chapter 8 · Lists and MapsPro0/8 solved

Chapter 9 · Inheritance and InterfacesPro0/8 solved

Chapter 10 · Exceptions and EnumsPro0/8 solved

Chapter 11 · Lambdas and StreamsPro0/8 solved

Chapter 12 · Generics and Modern JavaPro0/8 solved