aspose file tools*
The moose likes Beginning Java and the fly likes what is bit depth of a boolean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is bit depth of a boolean ?" Watch "what is bit depth of a boolean ?" New topic
Author

what is bit depth of a boolean ?

tue march
Greenhorn

Joined: Mar 09, 2005
Posts: 16
Hey guys,

what is the bit depth of a boolean.

Rds,
Good guy
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
'bit depth'? do you mean size in bits?

a boolean has only one bit.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
No,
Size of boolean depends on JVM.
[ November 24, 2008: Message edited by: ankur rathi ]
tue march
Greenhorn

Joined: Mar 09, 2005
Posts: 16
Thanks,
rathi
paraakaram verma
Greenhorn

Joined: Apr 16, 2008
Posts: 4
hi ankur ...

do you know how bit depth of boolean is dependent on
JVM

Thanks
Paraakaram
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
A boolean represents one bit of information. How it is stored (whether one boolean per memory word, or packed with other boolean values in a single word, or in some radically different way that takes up 1000 bytes per boolean) is up to the JVM, as long as the other JLS provisions for primitive types are met.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: what is bit depth of a boolean ?