Re: Why all the max length constraints?
From: Marshall <marshall.spight_at_gmail.com>
Date: 30 May 2006 16:09:39 -0700
Message-ID: <1149030578.632384.30320_at_u72g2000cwu.googlegroups.com>
Date: 30 May 2006 16:09:39 -0700
Message-ID: <1149030578.632384.30320_at_u72g2000cwu.googlegroups.com>
Bob Badour wrote:
> Marshall wrote:
>
> > David Cressey wrote:
> >
> >>I thought Marshall said that Java strings were limited to a few gigabytes.
> >>I that "almost unlimited"?
> >
> > OT: Java's String object is a wrapper for an array of char. Java
> > arrays are indexed by an int, which is by definition (by the *Java*
> > definition) a 32 bit signed integer. Because of this, arrays are
> > limited to 2^32-1 length, which means String objects have
> > the same limit on length.
>
> Do they really use the negative range?
Marshall Received on Wed May 31 2006 - 01:09:39 CEST