[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: byte, short and int



In Java:
short Short integer 16-bit two's complement 
int Integer 32-bit two's complement 

--- "Huang, Xueqin" <Xueqin.Huang@acs-inc.com> wrote:
> Does JVM use the same memory space (4 bytes) for byte, short and int?
> 
> The book "JAVA I/O" (Elliotte Rusty Harold) mentioned that "a single
> byte
> still takes up four bytes of space inside the Java virtual machine,
> ...". I
> guess a short may take 4 bytes too.
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com