+ 2
I really am not understanding what booleans are !!
I am not really understanding what booleans are by he content given; so can anyone explain me in short. Please !?
6 odpowiedzi
+ 10
Hi Anurag! In short, booleans are a data type of variables, and their values can only be 2: true or false.
You can refer to my answer on the post below for a more detailed explanation with examples. Hope it helps you.
https://www.sololearn.com/discuss/326691/?ref=app
+ 5
Think like as binary...
0 is false and 1 is true
+ 2
boolean is a data type like int, short and others
difference is that you can store only true or false in it
+ 2
yes no. up down. 0 1. boolean is true or false. it doesn't save value but state.
+ 2
yes no. up down. 0 1. boolean is true or false. it doesn't save value but state.
+ 1
Hello. You must think in boolean as a switch that lets you decide which way to follow. If boolean is true follow on the right, in otherwise take the left.
I hope you had understood me.