+ 3

What is Boolean values?

14th Mar 2018, 7:51 AM
Muhammad Shahzaib
Muhammad Shahzaib - avatar
5 Respostas
+ 7
<< In computer science, the Boolean data type is a data type, having two values (usually denoted true and false), intended to represent the truth values of logic and Boolean algebra. It is named after George Boole, who first defined an algebraic system of logic in the mid 19th century. The Boolean data type is primarily associated with conditional statements, which allow different actions and change control flow depending on whether a programmer-specified Boolean condition evaluates to true or false. It is a special case of a more general logical data type; logic need not always be Boolean. >> https://en.m.wikipedia.org/wiki/Boolean_data_type
14th Mar 2018, 6:48 PM
visph
visph - avatar
+ 6
A boolean can be either True or False. NULL is not a boolean value.
14th Mar 2018, 7:54 AM
Bram
+ 3
a boolean value in any programming language is a data type that its value is either 'true' or 'false'
14th Mar 2018, 7:56 AM
JustCodeMore
JustCodeMore - avatar
0
Boolean value is one with two choices: true or false, yes or no, 1 or 0. just type Boolean followed by variable name and then assign a value in true or false . Example : boolean user = true; if ( user == true) { System.out.println("it's true"); } else { System.out.println("it's false"); } output: true
16th Mar 2018, 3:52 PM
Rajan Singla
Rajan Singla - avatar
0
True Or False & 1 Or 0
4th Nov 2019, 2:20 PM
Umar Ahmad
Umar Ahmad - avatar