float and Wrapper Class Float

I want to know the precision for Wrapper class Float and why and how the wrapper class Float and Double takes 16bytes of memory whereas primitive type takes only 4bytes of memory.
[200 byte] By [arvin333a] at [2007-11-26 23:59:24]
# 1

> I want to know the precision for Wrapper class

> Float and why and how the wrapper class Float and

> Double takes 16bytes of memory whereas primitive type

> takes only 4bytes of memory.

Not sure if the wrapper class' memory consumption can be expressed that accurately, but the fact that it's more than the primitive it wraps, is (of course) due to the fact that the wrapper itself holds the primitive and a couple of other variables.

prometheuzza at 2007-7-11 15:48:19 > top of Java-index,Java Essentials,Java Programming...
# 2
simply put, the overhead of having an object in memory. who cares, anyway? if you're that concerned about a few bytes, maybe java isn't the right language for your projectFloat has the same precision as the primitive float
georgemca at 2007-7-11 15:48:19 > top of Java-index,Java Essentials,Java Programming...