Data Type: Boolean

The boolean data type can store only two values, which are expressed using the Java reserved words true and false, as shown in the table below. Booleans are typically used for decision making and for controlling the order of execution of a program. Here are examples of declarations of boolean variables:

Screen Shot 2018-12-10 at 8.38.32 AM

So behind the declaration of the boolean variables you see above which contains the identifiers: isEmpty, mindful, compassionate, and the type: boolean, you should realize that there is only the storing of 1 and 0: true and false.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s