Byte size of primitive type
806067May 30 2011 — edited May 31 2011Hi All,
How can I find the byte size of primitive types? In c , there is sizeOf(int). I found Integer.SIZE in java, but it return bits, so can I simply divide bit result to 8, then get the result? What about if bits are not multiple of 8?
Thanks!