Java string class

broken image
broken image
broken image

In which supplementary characters are represented by surrogateĬharacter Representations in the Character class for Or method in this class will cause a NullPointerException to beĪ String represents a string in the UTF-16 format

broken image

Unless otherwise noted, passing a null argument to a constructor For additional information on stringĬoncatenation and conversion, see The Java™ Language Specification. The Java language provides special support for the stringĬoncatenation operator ( + ), and for conversion of Case mapping is based on the Unicode Standard version Searching strings, for extracting substrings, and for creating aĬopy of a string with all characters translated to uppercase or to Individual characters of the sequence, for comparing strings, for The class String includes methods for examining Here are some more examples of how strings can be used: String buffers support mutable strings.īecause String objects are immutable they can be shared. Strings are constant their values cannot be changed after theyĪre created. String literals in Java programs, such as 'abc', are The String class represents character strings.

broken image