By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,831 Members | 1,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,831 IT Pros & Developers. It's quick & easy.

Default length of the String data type

P: 1
Hi, schema defines String data type, and provides the option of specifying its max length min length and length.

If i do not specify any value for these properties of the String data type what will be the default maximum length of the String data type.

Is this default platform specific, if so is there any way to know it's value in java.

Thanks in advance,
Jun 19 '12 #1
Share this Question
Share on Google+
1 Reply

P: 185
The standard doesn't specify a default value. length attribute should be used to infer storage requirements.
I'm not sure, but I suspect that the length value should be calculated from the string values itself.

Please let us know if you could find a way to retrieve it in Java.
Jan 6 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.