The Java EE 6 Tutorial, Volume I

String Literals

A string literal is enclosed in single quotes:


If a string literal contains a single quote, you indicate the quote by using two single quotes:


Like a Java String, a string literal in the query language uses the Unicode character encoding.