> is there any restriction on how many characters a String can hold?
AFAIK, yes and no ...
No, there is no restriction when working on simple hello world programs.
Yes, there is a restriction. When you serialize some data, only the first
<could someone fill this in> characters of the string are being serialized !
I was amazed to find that out. So, be careful when saving objects to file,
using RMI, storing them in sessions, and much more ...
As a guide, I try to keep my strings simple and short, and use StringBuffers
for anything else.
Erez
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html