View RSS Feed

Java String

Strings in Java

Rate this Entry
by , 04-26-2012 at 07:24 PM (443 Views)
The most common use of the string class is manipulation and holding of the text strings, in Java programs. In case of automatically imported standard java.lang packages this is usually found, therefore nothing special is needed to use it.

String class can be used in its simplest form by typing text that is usually double quotes surrounded. This is what is known as String literal.
"This is a Java String"

Anywhere a String object is needed, string literal can be typed as in:
Java Code:
Console.println("Hello there!");

Submit "Strings in Java" to Facebook Submit "Strings in Java" to Digg Submit "Strings in Java" to Submit "Strings in Java" to StumbleUpon Submit "Strings in Java" to Google