This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "How "boolean" work?" Watch "How "boolean" work?" New topic

How "boolean" work?

Jamshed Jawed

Joined: Sep 22, 2001
Posts: 2
i want to know that how boolean work?
Anu Kris

Joined: Oct 01, 2001
Posts: 13
boolean in java take 2 values either true/false and by default it is false.It is not 0 and 1 and the size is 1 bit
Mr Iftikhar
Ranch Hand

Joined: Oct 12, 2001
Posts: 39
boolean is a java data types which holds the condtion either true or false .
it takes 1 bit memory.
Where we use it .
Suppose i want to check the color of bed is red or not than i take a boolean data type which save the condition the color is red than true other wise false.

java language
I agree. Here's the link:
subject: How "boolean" work?
It's not a secret anymore!