A character literal consists of single-quotes which enclose a single Unicode character or a so-called escape sequence.
For example 'A' is a character literal which represents the uppercase letter A; and '\u0041' is an alternative representation A for as all sequences of a backslash, followed by an ``u'', and four hex digits (giving 16 bits) are replaced by the corresponding Unicode character. Note that the \u-notation is permitted everywhere in a Java program, not just within character literals. This allows all Unicode characters to be specified within a Java program even if the full Unicode character set is not supported by the current environment.
However, not all Unicode characters can be directly given within a character literal. ''' or '\' are not permitted and likewise neither CR (carriage return) nor LF (line feed) which may be used for line terminators.