Default length of the String data type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • driftingprogram
    New Member
    • Jun 2012
    • 1

    Default length of the String data type

    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.
  • Anas Mosaad
    New Member
    • Jan 2013
    • 185

    #2
    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

    Comment

    Working...