What is the size of a boolean variable

Reply

Join Date: Aug 2005
Posts: 36
Reputation: aripaka is an unknown quantity at this point 
Solved Threads: 0
aripaka's Avatar
aripaka aripaka is offline Offline
Light Poster

What is the size of a boolean variable

 
0
  #1
Sep 29th, 2005
Hi,

Can anyone please tell whats the size of a boolean variable declared in Java?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: What is the size of a boolean variable

 
0
  #2
Sep 29th, 2005
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC