Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java School 2: Basic Programming for Students and Beginners
2 students

Java School 2: Basic Programming for Students and Beginners

"Write Smart Code: `if` Conditions, Boolean Expressions, `for` and `while` Loops, and Step-by-Step Exercises"
Last updated 1/2026
English

What you'll learn

  • You’ll learn how to write boolean expressions to compare values and make decisions in your code.
  • You’ll discover how to use if, if-else, and else if statements to control program flow.
  • You’ll understand how to combine multiple conditions using logical operators like &&, ||, and !.
  • You’ll learn how to manage nested conditions to handle complex scenarios with clarity and precision.
  • You’ll use while and for loops to repeatedly execute blocks of code.
  • You’ll learn how to build algorithms that use iteration to solve common problems.
  • You’ll discover how to avoid frequent loop-related errors, such as infinite or incorrect conditions.
  • You’ll sharpen your skills with guided exercises to write cleaner, more efficient code.

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

4 sections • 58 lectures • 8h 11m total length
  • Who is this course for (free quiz in the resources below)1:54
  • What expect and what NOT from this course1:50
  • How the course works2:12

Requirements

  • The course is designed to continue from *"Java School 1: Programming for Students and Beginners"*, but aside from that, it’s suitable for absolute beginners.

Description

Welcome to the Java School

The ideal course for anyone who wants to learn programming from scratch, just like in a real classroom. This course is designed for:

  • High school students approaching the world of coding for the first time.

  • First-year university students who want to strengthen their Java programming foundations.

  • Absolute beginners who are curious to discover one of the most widely used and versatile programming languages.

What You Will Learn in the Course

In these units, you will deepen your understanding of concepts that will allow you to write programs capable of making decisions and repeating operations efficiently. Here's what you'll explore:

  • Boolean expressions: Learn how to compare values using relational operators and combine conditions using logical operators.

  • Conditional structures: Use if, if-else, and else if to write code that adapts to different situations, controlling what happens and when.

  • Nested conditions: Create more complex and readable decision structures, managing multiple cases with clarity and precision.

  • Condition evaluation: Discover what short-circuit evaluation is and why it can make your code more efficient (and sometimes safer).

  • While and for loops: Repeat actions as long as a condition is true or for a defined number of times, with full control over iteration.

  • Flow control in loops: Properly manage the start, end, and conditions of loops to avoid errors like infinite loops.

  • Loop analysis and tracing: Follow the step-by-step execution of loops to fully understand what’s happening and predict your code's output.

Included Course Resources

To support you during your learning journey, the course provides:

  • A downloadable PDF that serves as both a textbook and reference guide.

  • 46 online coding exercises—perfect for practicing what you’ve learned.

  • Step-by-step guided tutorials with detailed explanations.

  • Solved assignments to reinforce the skills you’ve acquired.

  • Entry quiz: A 10-question test to check if the course is right for you.

  • Exit quiz: A 20-question test to measure your progress.

Why Choose This Course?

With a simple, structured, and educational approach, the course offers a school-like experience accessible to everyone. Full of practical examples and guided exercises, it will walk you through writing your first Java code, step by step.

No matter where you're starting from—with Java School, you have everything you need to begin your programming journey.


*Updated October 2025: added 5 new multiple choice questions on Quiz 2: Unit 3 Summative Assessment

Who this course is for:

  • The goal of the course is to provide a solid foundation in Java programming, guiding beginners through fundamental concepts, code writing, and the use of practical tools to develop logical and technical skills applicable to the real world.