String is a sequence of characters, For example: "hello" is a string containing a sequence of characters 'h' , 'e' , 'l' , 'l' , and 'o' . We use double quotes to represent a string in Java.In java, string is an immutable object which means it is constant and can not be changed once it has been created.