Thursday, June 7, 2007

Size of empty class

For the 32-bit system, an instance of an empty class occupies total 8 bytes.Because method table pointer takes 8 bytes and sync block takes 4 bytes.

No comments: