string " " a"" code example Example: string in java In java, string is an object. It is sequence of character values enclosed by double quotes.