Friday, 15 May 2015

java - Representing a single byte -



java - Representing a single byte -

a single byte takes four bytes of space within java virtual machine(32 bit processor).

yes,we can utilize array of byte occupy amount of space needs. want utilize single byte not array of bytes.

so,is there type in java represent 8 bit datum.

a single byte can be allocated more single byte of storage, memory alignment reasons.

do not worry target processor. array of 10000 bytes will stored in approximately 10000 bytes of space.

java

No comments:

Post a Comment