I'm not sure if you went to the spec for this information but it is not correct in
every implementation of the JVM that I have used. If you read the source of the
java.lang.String class you will not find any upper bounds on the size of the
underlying character array.
please correct me if I am wrong.
Amarnath N wrote:
> Java String can hold upto 255 characters.....
> getString("") will return what u r expecting....but u cannot store in a
> string.......u can test whether u r getting what u expected....just print
> getString("")...do not assign it to a String var...
> ----- Original Message -----
> From: "Lenin Lopez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 11, 2001 12:33 AM
> Subject: getString(" ") question
>
> > Hi All,
> >
> > I am trying to get a varchar(2000) value from my DB using a store
> prodedure
> > I know the store procedure works and returns the value I am expecting
> > However, when I try to retreive the value using getString("myValue") in
> > java,
> > the lenght of what I get is less than the actual velue in the DB,
> >
> > am I using the right getXXX method??
> > Or is there any other method I can use??
> >
> >
> ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
Erik I Morton
Software Developer
------------------
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets