Lesson - 3 : java.lang Package - String Class in Java Programming Language

Pubblicato il: 12 febbraio 2017
sul canale di: Sada Learning Hub
163
1

String Class : The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase. Case mapping is based on the Unicode Standard version specified by the Character class.

The Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings. String concatenation is implemented through the StringBuilder(or StringBuffer) class and its append method. String conversions are implemented through the method toString, defined by Object and inherited by all classes in Java. For additional information on string concatenation and conversion, see Gosling, Joy, and Steele, The Java Language Specification.

Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown.

A String represents a string in the UTF-16 format in which supplementary characters are represented by surrogate pairs (see the section Unicode Character Representations in the Character class for more information). Index values refer to char code units, so a supplementary character uses two positions in a String.


In questa pagina del sito puoi guardare il video online Lesson - 3 : java.lang Package - String Class in Java Programming Language della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sada Learning Hub 12 febbraio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 163 volte e gli è piaciuto 1 spettatori. Buona visione!