Boolean

What is a boolean?

  • It’s a primitive data type. (So, it’s simpler than an object but it’s often used as one or more instance variables in a class.)
  • It can only have one of two values: true or false.
boolean austinsTeaching = true;

boolean mercerIslandRocks = true;

boolean theSeahawksWillLoseTheirNextGame = false;

-> Boolean expressions