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 booleans use 1 byte per element.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -