Get started in Java programming. This course shows beginners how to write Java code and build simple Java applications.
Overview
Syllabus
Introduction
- Welcome to learning Java
- What you should know
- Using the exercise files
- What is Java?
- Downloading Java on your computer
- Exploring the command line
- Your first Java program
- Hello World in the command line
- Exploring an integrated development environment (IDE)
- Hello World in an IDE
- Primitive data types
- Data types and variables in Java
- Strings in Java
- Using indexes with strings
- Concatenating strings in Java
- Input and output in Java
- Mapping out program control flow
- Operators in Java
- Decision-making with if in Java
- Understanding scope in Java
- While loops (conceptually)
- While loops in Java
- Challenge: Multiple choice
- Sample solution: Multiple choice
- Debugging syntax and logical errors
- Debugging with an IDE
- Challenge: Find the errors
- Sample solution: Find the errors
- What are functions? (conceptually)
- Defining functions in Java
- Calling functions in Java
- Parameters in Java
- Return types in Java
- Using built-in functions in Java
- Challenge: Salary calculator
- Sample solution: Salary calculator
- Classes in Java
- Constructors in Java
- Creating a class in Java
- Creating instances in Java
- Instance methods vs. class methods
- Using instance methods in Java
- Instance and class variables in Java
- Review: Classes vs. instances
- Challenge: Student profile
- Sample solution: Student profile
- Next steps for learning Java
Taught by
Kathryn Hodge