String : String is a sequence of Characters. - In the Java programming language, Strings are Objects. The Java platform provides the String Class to create and manipulate Strings. Example : String greeting = "Hello world!"; In this case, "Hello world!" is a string literal—a series of characters in your code that is enclosed in double quotes. Whenever it encounters a string literal in your code, the compiler creates a String object with its value—in this case, Hello world!.