+ 1

What is Boolean?

28th Jan 2019, 7:21 AM
Malvin Michael
Malvin Michael - avatar
3 Answers
+ 11
A Boolean expression is a Java expression that, when evaluated, returns a Boolean value: 'true' or 'false'. ➝ A 'boolean' type can have one of two values: 'true' or 'false'. A 'boolean' is used to perform logical operations, most commonly to determine whether some condition is 'true'. ‱ Boolean expressions are used in conditional statements, such as 'if', 'while', and 'switch'. https://code.sololearn.com/WHv1hxlN7Dhf/?ref=app
28th Jan 2019, 7:54 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
a boolean has two outputs True and false I also had the same problem a while ago!
28th Jan 2019, 8:15 AM
Stealthycoder2007
Stealthycoder2007 - avatar
+ 1
I dont think a Boolean is a only in Java cause in my python course i had a boolean topic. So i think its just an expression that when evaluated it give the true or false value
28th Jan 2019, 9:53 AM
Lorna Muchangi