Term
|
Definition
A reference is a variable that holds a memory address |
|
|
Term
|
Definition
The Character class is one whose instances can hold a single character value. This class also defines methods that can manipulate or inspect single-character data. |
|
|
Term
|
Definition
The String class is for working with fixed-string data‒ that is, unchanging data composed of multiple characters |
|
|
Term
StringBuilder and StringBuffer classes |
|
Definition
The StringBuilder and StringBuffer classes are for storing and manipulating changeable data composed of multiple characters. It is an alternative to the String class when you know a String will be modified |
|
|
Term
|
Definition
An anonymous object is an unnamed object |
|
|
Term
|
Definition
A String variable is a named object of the String class |
|
|
Term
|
Definition
Immutable objects cannot be changed |
|
|
Term
|
Definition
The String class equals() method evaluates the contents of two String objects to determine if they are equivalent |
|
|
Term
|
Definition
A lexicographical comparison is based on the integer Unicode values of characters |
|
|
Term
equalsIgnoreCase() method |
|
Definition
The String class equalsIgnoreCase() method is similar to the equals() method. As its name implies, it ignores case when determining if two Strings are equivalent |
|
|
Term
|
Definition
The String class compareTo() method is used to compare two Strings; the method returns zero only if the two Strings refer to the same value. If there is any difference between the Strings, a negative number is returned if the calling object is “less than” the argument, and a positive number is returned if the calling object is “more than” the argument |
|
|
Term
|
Definition
The String class toUpperCase() method converts any String to its uppercase equivalent |
|
|
Term
|
Definition
The String class toLowerCase() method converts any String to its lowercase equivalent |
|
|
Term
|
Definition
•The String class length() method returns the length of a String |
|
|
Term
|
Definition
Accessor methods return information about an object |
|
|
Term
|
Definition
The String class indexOf()method determines whether a specific character occurs within a String. If it does, the method returns the position of the character; the first position of a String begins with zero. The returns value is -1 if the character does not exist in the String. |
|
|
Term
|
Definition
The String class charAt() method requires an integer argument that indicates the position of the character that the method returns |
|
|
Term
|
Definition
The String class endsWith() method takes a String argument and returns true or false if a String object does or does not end with the specified argument |
|
|
Term
|
Definition
The String class startsWith() method takes a String argument and returns true or false if a String object does or does not start with the specified argument |
|
|
Term
|
Definition
· The String class replace() method allows you to replace all occurrences of some character within a String |
|
|
Term
|
Definition
•The toString() method converts any object to a String |
|
|
Term
|
Definition
•Concatenation is the process of joining a variable to a string to create a longer string |
|
|
Term
|
Definition
•The substring() method allows you to extract part of a String |
|
|
Term
|
Definition
The Integer class is a wrapper class that contains a simple integer and useful methods to manipulate it |
|
|
Term
|
Definition
· A wrapper is a class or object that is “wrapped around” a simpler element |
|
|
Term
|
Definition
The Integer class parseInt() method takes a String argument and returns its integer value |
|
|
Term
|
Definition
The Double class is a wrapper class that contains a simple double and useful methods to manipulate it |
|
|
Term
|
Definition
•The Double class parseDouble() method takes a String argument and returns its double value |
|
|
Term
|
Definition
A buffer is a block of memory |
|
|
Term
|
Definition
The capacity of a StringBuilder object is the actual length of the buffer, as opposed to that of the string contained in the buffer |
|
|
Term
|
Definition
· The StringBuilder class setLength() method changes the length of characters in the String in a StringBuilder object |
|
|
Term
|
Definition
•The length property is an attribute of the StringBuilder class that identifies the number of characters in the String contained in the StringBuilder |
|
|
Term
|
Definition
The StringBuilder class capacity() method returns the actual length, or capacity, of the StringBuilder object |
|
|
Term
|
Definition
The StringBuilder class append() method lets you add character to the end of a StringBuilder object |
|
|
Term
|
Definition
The StringBuilder class insert() method lets you add characters at a specific location within a StringBuilder object |
|
|
Term
|
Definition
The StringBuilder class setCharAt() method allows you to change a character at a specified position within a StringBuilder object |
|
|
Term
|
Definition
The StringBuilder class charAt() method accepts an argument that is the offset of the character position from the beginning of a String and returns the character at that position |
|
|