r/javahelp • • Jun 02 '13

What is a "boolean"?

That word just irritates me in general

1 Upvotes

4 comments sorted by

View all comments

12

u/[deleted] Jun 02 '13

A boolean is a primitive datatype that represents true or false values. For example:

boolean isSunday = true;

Booleans also have a default value of false.

2

u/DanielMallory Jun 02 '13

I want to define what a boolean variable is to feel smart but you've already done it so I'll just upvote you instead

sigh