Skip to content

Opening book details…

About this document

Java String Creation and Immutability by Daksh Mathur is a document available to read on EtoBox.

Java String provides methods to perform operations on strings like compare, concatenate, check equality, split, get length, replace characters, compare lexicographically, intern strings, and get substrings. In Java, a string is an object that represents a sequence of characters. Strings can be created using string literals or the new keyword. The String class is immutable, so concatenating or modifying a string does not change the original but creates a new string instance instead.

Author
Daksh Mathur
Language
EN