wood burning stoves 2.0*
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "How "boolean" work?" Watch "How "boolean" work?" New topic
Author

How "boolean" work?

Jamshed Jawed
Greenhorn

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

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How "boolean" work?