Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java 21: Complete Beginner Course with 2 Projects
New

Java 21: Complete Beginner Course with 2 Projects

Learn Core Java, OOP, Collections, and Streams through 29 hands-on exercises and two guided console projects.
Created byRavin Bhambhu
Last updated 11/2026
English
English

What you'll learn

  • Set up Java 21 in VS Code, run your first Java program, and debug it with breakpoints.
  • Build a Student Marks Manager using loops, arrays, and methods to find records, validate marks, and calculate averages.
  • Apply object-oriented programming in Java using classes, interfaces, inheritance, and polymorphism.
  • Build a Bank Management System that saves account data, restores a transaction history, and verifies concurrent transfers.
  • Filter, sort, and summarize data with Java collections, lambdas, and the Stream API.
  • Use Maven and JUnit to test expected results, boundary cases, and exceptions.

Course content

9 sections • 29 lectures • 5h 10m total length
  • Java 21 Setup and Your First Program11:00

    Install JDK 21, set up VS Code, and compile and run your first Java program from the terminal. See how the JDK, JRE, and JVM work together when you run Java code.

  • Variables, Data Types and var10:47

    Store values in variables, choose between primitive and reference types, and use literals and constants. See how Java infers a local variable's type with var.

  • Type Casting, Operators and Scanner Input10:43

    Read whole numbers and full names with Scanner. Use operators and type casting to calculate an average without losing its fractional part.

  • If-Else, Switch and Switch Expressions10:49

    Choose between if-else, a switch statement, and a switch expression. Trace how branch order, fall-through, and the default case affect the result.

  • For, While and Do-While Loops10:39

    Repeat work with for, while, and do-while loops. Use break and continue, and check loop boundaries to catch off-by-one errors.

  • Java Basics Check
  • Compile and Run Your First Java Program

Requirements

  • No prior programming experience is required. You'll need a Windows, macOS, or Linux computer and internet access. The course guides you through installing JDK 21 and setting up VS Code.

Description

This course contains the use of artificial intelligence.


Learn Java 21 from scratch by writing, running, and debugging real programs. You'll go from your first Java program in VS Code to a console banking app that saves account data and checks that concurrent transfers leave every balance correct.


Start with variables, conditions, loops, arrays, strings, and methods. Then apply those skills in your first project, a Student Marks Manager. You'll look up students by roll number, validate marks, and calculate averages. Along the way, you'll use breakpoints to see what your code is doing and track down common mistakes.


Next, use object-oriented programming to organize your code with classes, interfaces, and records. You'll handle exceptions, work with files, and use Java collections, lambdas, and the Stream API to filter and summarize data. You'll also use Maven and JUnit to test expected results, boundary cases, and exceptions.


In the Bank Management System project, you'll model accounts, record transactions, save and restore the ledger, and verify the results of 200 concurrent transfers. The course also introduces thread pools, CompletableFuture, and Java 21 virtual threads through runnable examples.


You get 29 video lectures covering 5 hours and 11 minutes, 29 quiz questions, 29 hands-on coding exercises with solutions, nine downloadable cheat sheets, and source code for both projects. Lessons pair synthetic narration with recorded editor and terminal demonstrations, so you can follow the code and compare your results with actual program output.


This course is designed for first-time programmers and students who want hands-on Java practice. No prior programming experience is required. The first lecture walks you through installing JDK 21 and setting up VS Code.

Who this course is for:

  • First-time programmers and students who want to learn Java 21 from scratch, practice with guided exercises, and build two working console projects.