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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -