• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

boolean size

 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is neither true nor false. The answer is undefined. The JLS does not require a specific size for a boolean.
 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting
 
vigor lee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic