473,508 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Default length of the String data type

1 New Member
Hi,

http://www.w3.org/2001/XMLSchema 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,
Ben.
Jun 19 '12 #1
1 2000
Anas Mosaad
185 New Member
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.
Thanks
Jan 6 '13 #2

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

Similar topics

2
5882
by: JT | last post by:
i don't know why i can't find this anywhere but - what is the maximum number of characters that a string variable can hold - i initially thought it was 256, but after some testing it seems that...
8
8185
by: Newsnet Customer | last post by:
Hi, Which system header file do I unclude in order to use the new string data type? KJ
4
1282
by: MrMike | last post by:
I'm working with a DataGrid UpdateCommand event and running into a problem. The second column of the dg is the PK named "FlitchNum". The datatype of this PK is varchar(string). In the event I...
1
1650
by: Roy | last post by:
Hi all, I understand the definition of this property, but I'm not sure when or why it should be used. Thanks in advnace Roy
6
4986
by: tvn007 | last post by:
Hi, I tried to convert string data type to char type so that I can use strtok. I have used c_str(). However, still getting error message when compile . Any help would be appreciate.
6
5737
by: John Aldrin | last post by:
Hi, I'm looking for info that explains the format of a string data type when written to a stream using a BinaryWriter. I've looked all over MSDN and Internet and I cannot seem to find it. I...
3
1099
by: Steve Holland | last post by:
Can a variable declared as string (Dim strMessage as String) be set to a Null value??? If so, how??? I am using SQL Server as a backend database and want to set values not populated on a VB.Net...
4
2399
by: donald | last post by:
how to get the length of variable for differernt data type, such as data type of structure, integer, date, etc. Thanks in advance.
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.