Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

constant string too long

843810Feb 23 2006 — edited Sep 1 2007
Is there a limitation on the length of a java.lang.String object ? I could not find any documentation related to this, but when I specify a very long String in my program i get the error :
'constant string too long'
I need to use very long strings .. is there any workaround ?

Pankaj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2007
Added on Feb 23 2006
3 comments
3,422 views