Mega Code Archive

 
Categories / Java Tutorial / Data Type
 

Using String class

In Java, ordinary strings are objects of the class String. A String object represents a string, i.e. a piece of text. String is a sequence of Unicode characters. A string literal is a sequence of characters between double quotes. String objects are immutable.