[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: byte, short and int
My guess is that it is completely up to the JVM implementation.
But is is an interesting question, does anyone have an answer.
If it is up to the JVM, does anyone know how the IBM and/or Sun
VMs handle this?
--- "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