Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes boolean size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "boolean size" Watch "boolean size" New topic

boolean size

Cathy Song
Ranch Hand

Joined: Aug 24, 2003
Posts: 270
Size of boolean in bits = 1 (T/F)
I think the above statement is false, since boolean bit size is JVM dependent.
Am I right?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
The answer is neither true nor false. The answer is undefined. The JLS does not require a specific size for a boolean.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Cathy Song
Ranch Hand

Joined: Aug 24, 2003
Posts: 270
vigor lee

Joined: Nov 01, 2003
Posts: 5
wood burning stoves
subject: boolean size