Chapter 4 Flashcards
Char type
A primitive data type that represents a Unicode character.
Encoding
Representing a character using a binary code
Escape character
A backslash \ is called an escape character.
Format specifier
instance method
Line-based input
Static method
supplementary Unicode
Token-based input
Unicode
Whitespace character
Char type
A primitive data type that represents a Unicode character
Encoding
Representing a character using a binary code
Escape Character
The backslash \ is called an escape character
Escape sequence
A special notation, consisting of a backslash () followed by a character or a combination of digits.
format specifier
A format specifier specifies how an item should be displayed. An item may be a numeric value, a character, a Boolean value, or a string.
instance method
a nonstatic method in a class. Instance methods belong to instances and can only be invoked by them.
line-based input
The input that reads a line such as nextLine() is called a line-based input.
static method
A method that can be invoked without creating an instance of the class. To define static methods, put the modifier static in the method declaration.
supplementary Unicode
The original Unicode is 16-bit. Those characters that go beyond the original 16-bit limit are called supplementary characters.
token-based input
The input that reads an item ending at a whitespace character such as nextInt(), nextDouble(), and next() is called token-based input.
Unicode
A code system for international characters managed by the Unicode Consortium. Java supports Unicode.
whitespace character
The characters ‘ ‘, \t, \f, \r, or \n are known as whitespace characters.