String Flashcards
1
Q
What is “character literals”?
A
an integer value represented as a character in single quotes, like ‘z’ represent the integer value of z
2
Q
What is a “string literal”?
A
a string literal is a sequens of characters in double marks, as in “hello world”
string literals may be assigned to a string reference, like:
String color (the reference) = “blue”;
3
Q
What is a string?
A
a string is a sequens of characters treated as a single unit