The way an object is laid out in memory isn't specified in the JVM specification. That means that in different JVM implementations it might be different and object may thus have different sizes in memory. It shouldn't matter for your
Java program.
By the way, a pointer on a 64-bit system is 64 bits, which is 8 bytes, not 5 bytes.
[ March 27, 2007: Message edited by: Jesper Young ]