Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java Coding Practice: 90+ Exercises from Basics to Java 21
Role Play
New
2 students

Java Coding Practice: 90+ Exercises from Basics to Java 21

Practice Java from syntax to OOP, collections and modern features, then build three capstones and do mock interviews
Created bySoundhar K
Last updated 10/2026
English

What you'll learn

  • Write correct Java from the basics: types, control flow, methods, arrays and strings.
  • Apply object-oriented design with classes, interfaces, inheritance and encapsulation.
  • Use collections, generics, streams and lambdas to write concise, readable code.
  • Handle exceptions and use modern Java features in hands-on exercises.
  • Build three capstones: an e-commerce order processor, a task management system and a banking system.
  • Explain your solutions out loud in mock interviews for Java developer roles.

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

8 sections • 7 lectures • 32m total length
  • Overview & Beginner Foundations6:23
  • Intermediate Power Tools5:15
  • Advanced Modern Java5:34
  • E-Commerce Order Processing Capstone4:19
  • Task Management Capstone3:08
  • Banking System with Concurrency Capstone3:59
  • How to Practise3:54

Requirements

  • Basic Java syntax: you can write a class with a method, an if statement and a for loop. This course builds fluency, it doesn't teach Java from zero.
  • A browser. All 90 exercises run in the Java editor built into the course, with automated tests, so there's nothing to install.

Description

You learn Java by writing Java. Watching someone else code can make it look easy, but the gaps only show up when you're the one typing and the compiler complains. This course gives you a steady supply of problems to solve yourself, from the basics to modern Java, with instant feedback on every one.

This course is 90 hands-on Java coding exercises in three tiers, three capstone projects and five mock interview role plays, with short lectures to guide you. Every exercise runs in your browser and is checked automatically, so you know immediately whether your code works.

The exercises cover the Java that interviews and day-to-day work rely on: writing methods that handle edge cases, choosing the right collection, designing small class hierarchies and using streams without making code harder to read. Each one is short enough to finish in one sitting.

What's inside

  • Beginner tier: variables and types, operators, conditionals, loops, methods, arrays and strings.
  • Intermediate tier: classes and objects, constructors, inheritance, interfaces, collections and exception handling.
  • Advanced tier: generics, streams and lambdas, more complex data handling and modern Java language features.
  • Capstone 1: an e-commerce order processing system that models orders, products and totals.
  • Capstone 2: a task management system with tasks, statuses and the logic to manage them.
  • Capstone 3: a banking system that handles accounts and transactions correctly.
  • Mock interviews: role plays where you explain your Java solutions and answer follow-up questions.

Why the capstones matter

Individual exercises build specific skills. The capstones make you combine them into something larger, which is where design decisions start to matter: how you split responsibilities between classes, how you handle errors, and how you keep code readable as it grows. They also give you projects to talk about in interviews.

How to use the course

If you're new to Java, work through the tiers in order. If you already know the basics, start with the intermediate tier and move to the capstones. Try each exercise before using hints, and redo the ones you miss a day later. Do the mock interviews when you're preparing for applications.

Who it's for

Beginners learning Java, students preparing for exams or placements, developers switching to Java from another language, and anyone preparing for a Java developer interview. No prior Java experience is required.

What you need

A browser. All exercises run in the course's built-in coding editor, so there's nothing to install.

Who this course is for:

  • Computer science students and freshers preparing for Java technical interviews and campus coding rounds
  • Developers switching to Java from Python, JavaScript or C# who want to write idiomatic Java quickly
  • Java developers still writing Java 8 style code who want hands-on practice with records, sealed types and modern streams
  • Self-taught programmers who finished a Java video course but have written very little Java on their own