r/javahelp • • Jun 02 '13

What is a "boolean"?

That word just irritates me in general

1 Upvotes

4 comments sorted by

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

6

u/SurrealSam Jun 02 '13

Named after English mathematician, philosopher and logician George Boole.

8

u/TheHorribleTruth Kind of meh Jun 02 '13

http://en.wikipedia.org/wiki/Boolean

Use Google, or post a question that's more than asking for a definition, please.