1. Java Concept Matching.
- data structure
- Collection of data (often of the same type) that is organized in some way, such as a list
- data type
- the way that binary data is interpreted, such as an integer, character, or boolean.
StringBuffer
- a mutable object made up of a sequence of characters with methods to mutate and access the sequence of characters within.
String
- an immutable sequence of characters with methods to access the sequence of characters within.
StringTokenizer
- an object that splits a
String
into tokens based on a set of delimiter characters. The delimiter characters are typically not returned as tokens. - zero indexing
- First character of a String starts at index zero
- unit indexing
- First character of a String starts at index one
- declaring a variable
- allocating memory for a particular data type and giving it an identifier.
-
instantiating a
String
- allocating memory for the String object using the
new
keyword or implicitly when performing concatenation. -
Font
object - an object that holds the name, size, and style of a font.
-
FontMetrics
object - an object that holds a reference to a
Font
object as well as methods for accessing properties such as the pixel width of a particular letter.
Explain the difference between each of the following pairs of terms.