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

Publié le: 12 février 2017
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne Lesson - 3 : java.lang Package - String Class in Java Programming Language durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Sada Learning Hub 12 février 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 163 fois et il a aimé 1 téléspectateurs. Bon visionnage!