Java for Beginners
Learn to write, compile, and run Java programs, work with data, control program flow, and create your own classes.
Course overview
Build a practical foundation in Java during this three-day instructor-led course. Start by compiling and running your first program, then work with variables and data types, make decisions, repeat tasks, store data in arrays and lists, organize code into methods, create classes and objects, and handle exceptions. Guided exercises reinforce each topic.
Course coverage
Progress from your first Java program to small object-oriented applications that organize data and handle common errors.
- 01 Getting started: JDK, IDE, compiling, running, and the main method
- 02 Variables, primitive types, String, operators, and casting
- 03 Console input and output with Scanner and System.out
- 04 Decisions with if, else if, else, switch, and logical operators
- 05 Loops with for, while, do-while, break, and continue
- 06 Arrays, ArrayList, and the enhanced for loop
- 07 Methods, parameters, return values, classes, and objects
- 08 Exceptions with try, catch, finally, and throw
Participants will learn to
- Set up the JDK and an IDE, then compile and run Java programs.
- Declare variables using primitive types and String.
- Use operators, type casting, and console input and output.
- Choose program actions with if/else and switch statements.
- Repeat tasks with for, while, and do-while loops.
- Store and process data with arrays and ArrayList.
- Write reusable methods and create classes with fields and constructors.
- Handle expected errors with try, catch, and finally.
Three-day course outline
Day 1 - Java basics and working with data: Install and use the JDK and an IDE, write a class with a main method, and compile and run programs. Declare variables with primitive types (int, double, boolean, char) and String, use arithmetic and comparison operators, cast between types, and read input with Scanner.
Day 2 - Decisions, loops, and collections: Control program flow with if, else if, else, and switch. Repeat tasks with for, while, and do-while loops using break and continue. Store data in arrays and ArrayList, and process them with the enhanced for loop.
Day 3 - Methods, classes, and exceptions: Write methods with parameters and return values. Create classes with fields, constructors, and methods, use private fields with getters and setters, and create objects. Handle expected errors with try, catch, and finally, then combine the course skills in a final lab.
Format and audience
For: New programmers, analysts, technical staff, and anyone who wants a practical introduction to Java.
Prerequisites: Basic computer skills; no previous programming experience is required. Participants need a computer with a current Java Development Kit (JDK 17 or later) and an IDE such as IntelliJ IDEA, Eclipse, or VS Code installed.
How it works: Three days of instructor-led demonstrations, guided exercises, and hands-on labs. Contact us to discuss dates and virtual or onsite delivery.
Explore the course
Request a quote for the three-day Java for Beginners course and discuss your team's training needs.