Topic 1 - Variables and Data Types
Topic 2 - Conditionals and Strings
Topic 3 - Loops
Topic 4 - Arrays
Topic 5 - File Handling
Semester 1 Projects
Topic 6 - Classes/Objects and Methods
Topic 7 - ArrayLists
Semester Projects

What is a variable in Java?

The following video is also on YouTube at https://youtu.be/pHgYlVjagmA. It explains what a variable is and gives a couple of real-world examples of variables.

variable is a name associated with a memory location in the computer. Computer memory can store a value, and that value can change or vary. When you play a game, it will often have a score. Scores often start at 0 and increase. A score is a variable.

Variables are part of a broader topic called, data representation, that is, representing data in the machine. There are several kinds of data that we might want to use: integers, decimal numbers, logical data (such as whether something is true or false), string data (such as, someone’s name).