String

  • In addition to the eight primitive data types listed above, the Java programming language also provides special support for character strings via the java.lang.String class.
  • Enclosing your character string within double quotes will automatically create a new String object; for example, String s = "this is a string";.
  • String objects are immutable, which means that once created, their values cannot be changed.
  • The String class is not technically a primitive data type, but considering the special support given to it by the language, you'll probably tend to think of it as such.

String — Structure map

Clickable & Draggable!

String — Related pages: