The JavaTM Tutorial

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form

Trail: Learning the Java Language
Lesson: Object and Data Basics

## Summary of Strings

> The following table summarizes the methods found in the `String` and `StringBuffer` classes.

### Summary of the String Class

> Method or Constructor | Purpose
> --- | ---
> `String() String (byte[]) String (byte[], int, int) String (byte[], int, int, String) String (byte[], String) String (char[]) String (char[], int, int) String (String) String (StringBuffer)` | Creates a new string object. For all constructors that take arguments, the first argument provides the value for the string.

### Summary of the StringBuffer Class

> [PENDING]

### Other Interesting Features

> `String` and `StringBuffer` provide several other useful ways to manipul ate string data, including concatenation, comparison, substitution, and conversion to upper and lower case. `java.lang.String` and `java.lang.StringBuffer` summarize and list all of the methods and variables supported by these two classes.

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form