Java primitive data types size -
hi learning java basics. need check size of primitive data types using sizeof();
in c language.
example code:
int i; system.out.print(sizeof(i));
there's no need such thing in java since sizes of primitives set jvms (unlike c can vary).
char
16 bit (actually unsigned quantity), int
32 bit, long
64 bit.
boolean
ugly sister in this. internally manipulated 32 bit int
, arrays of boolean
s use 1 byte per element.
Comments
Post a Comment