Key Concepts

Review core concepts you need to learn to master this subject

boolean Data Type

boolean result = true; boolean isMarried = false;

In Java, the boolean primitive data type is used to store a value, which can be either true or false.

Learn Java: Variables
Lesson 1 of 2

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo