Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Java Tutorial for Beginners

Programming with Mosh via YouTube

Overview

Learn the fundamentals of Java programming in this comprehensive 2.5-hour tutorial for beginners. Explore essential concepts such as variables, data types, control flow structures, and basic input/output operations. Begin with setting up your development environment and progress through writing your first Java program. Dive into topics like primitive and reference types, strings, arrays, arithmetic expressions, and casting. Practice your skills with hands-on projects, including a mortgage calculator. Master control flow with if statements, loops, and switch statements, and learn best practices for clean coding. By the end of this tutorial, gain a solid foundation in Java programming to start building your own applications.

Syllabus

Introduction .
Installing Java.
Anatomy of a Java Program .
Your First Java Program .
Cheat Sheet .
How Java Code Gets Executed .
Course Structure.
Types.
Variables.
Primitive Types.
Reference Types.
Primitive Types vs Reference Types .
Strings.
Escape Sequences .
Arrays.
Multi-Dimensional Arrays .
Constants.
Arithmetic Expressions .
Order of Operations .
Casting.
The Math Class .
Formatting Numbers .
Reading Input.
Project: Mortgage Calculator .
Solution: Mortgage Calculator .
Types Summary.
Control Flow .
Comparison Operators .
Logical Operators.
If Statements.
Simplifying If Statements .
The Ternary Operator.
Switch Statements.
Exercise: FizzBuzz.
For Loops.
While Loops.
Do...While Loops.
Break and Continue.
For-Each Loop.
Project: Mortgage Calculator .
Solution: Mortgage Calculator .
Control Flow Summary .
Clean Coding.

Taught by

Programming with Mosh

Reviews

Start your review of Java Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.