944,083 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3161
  • Java RSS
Sep 29th, 2005
0

What is the size of a boolean variable

Expand Post »
Hi,

Can anyone please tell whats the size of a boolean variable declared in Java?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
aripaka is offline Offline
36 posts
since Aug 2005
Sep 29th, 2005
0

Re: What is the size of a boolean variable

There is no need to know. A boolean is a boolean is a boolean. How it's defined internally is inconsequential to the person using the datatype.
It could even be different on different JVMs, so counting on a particular implementation is dangerous.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Display Value in JcomboBox
Next Thread in Java Forum Timeline: Why is sizeof operator notin Java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC