| Class 1, Part 2 | 
Intro to Java 30-IT-396 | 
  | 
char
- 
Represent one character.
 
- 
When assigning, surround character with single quotes.
 
- 
Example: char myChar = 'A'.
 
- 
Uses Unicode, designed for internationalization.
 
- 
Thus, a char type is two bytes.  Previous character encoding
was usually one byte.
 
- 
The first 256 characters mimic the original character encoding schemes. 
The other 65,200 are for new characters.
 
- 
Usually represented by the hexidecimal value, and start with \u to denote
Unicode.
 
- 
Other special characters that need to be escaped when assigned:
 
- 
\b Backspace
 
- 
\t Tab
 
- 
\n Line Feed
 
- 
\r Carriage Return
 
- 
\" Double Quote
 
- 
\' Single Quote
 
- 
\\ Backslash
 
boolean
- 
Represent true or false.
 
- 
That's about all I have to say about that.
 
 
Created by:  Brandan
Jones January 4, 2002