Specifications
Sun Services
Java™ Programming Language
Module 3, slide 13 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Textual – char
The textual char primitive has the following characteristics:
• Represents a 16-bit Unicode character
• Must have its literal enclosed in single quotes (’ ’)
• Uses the following notations:
'a' The letter a
'\t' The tab character
'\u????' A specific Unicode character, ????, is replaced with
exactly four hexadecimal digits .
For example, ’\u03A6’ is the Greek letter phi [Φ].










