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 -

wpf - C# NAudio - Changing audio playback position still plays a small buffer of old position -

Log not being recorded for quickfix c++ Session -