By prashantdeva
via eblog.chrononsystems.com
Published: Feb 02 2012 / 13:55
Consider this piece of code which allocates a boolean array of 100,00. Considering that a boolean can just be either true or false, every element in the array only needs a single bit of space each. However as it turns out, when you allocate a boolean array, Java uses an entire byte for each element in the boolean array!



Add your comment