File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: boolean size
It's not a secret anymore!