Shared Flashcard Set

Details

Chapter 7 Review
Review for Chapter 7 Definitions
37
Other
10th Grade
04/21/2014

Additional Other Flashcards

 


 

Cards

Term
reference
Definition
A reference is a variable that holds a memory address
Term
Character class
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
String class
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
anonymous object
Definition
An anonymous object is an unnamed object
Term
String variable
Definition
A String variable is a named object of the String class
Term
immutable objects
Definition
Immutable objects cannot be changed
Term
equals() method
Definition
The String class equals() method evaluates the contents of two String objects to determine if they are equivalent
Term
lexographical comparison
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
compareTo() method
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
toUpperCase() method
Definition
The String class toUpperCase() method converts any String to its uppercase equivalent
Term
toLowerCase() method
Definition
The String class toLowerCase() method converts any String to its lowercase equivalent
Term
length() method
Definition

•The String class length() method returns the length of a String

Term
accessor methods
Definition
Accessor methods return information about an object
Term
indexOf() method
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
charAt() method
Definition
The String class charAt() method requires an integer argument that indicates the position of the character that the method returns
Term
endsWith() method
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
startsWith() method
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
replace() method
Definition

·         The String class replace() method allows you to replace all occurrences of some character within a String

Term
toString() method
Definition

•The toString() method converts any object to a String

Term
concatenation
Definition

•Concatenation is the process of joining a variable to a string to create a longer string

Term
substring() method
Definition

•The substring() method allows you to extract part of a String

Term
integer class
Definition
The Integer class is a wrapper class that contains a simple integer and useful methods to manipulate it
Term
wrapper
Definition

·         A wrapper is a class or object that is “wrapped around” a simpler element

Term
parseInt() method
Definition

The Integer class parseInt() method takes a String argument and returns its integer value

Term
double class
Definition
The Double class is a wrapper class that contains a simple double and useful methods to manipulate it
Term
parseDouble() method
Definition

•The Double class parseDouble() method takes a String argument and returns its double value

Term
buffer
Definition

A buffer is a block of memory

Term
capacity
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
setLength() method
Definition

·         The StringBuilder class setLength() method changes the length of characters in the String in a StringBuilder object

Term
length property
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
capacity() method
Definition
The StringBuilder class capacity() method returns the actual length, or capacity, of the StringBuilder object
Term
append() method
Definition

The StringBuilder class append() method lets you add character to the end of a StringBuilder object

Term
insert() method
Definition

The StringBuilder class insert() method lets you add characters at a specific location within a StringBuilder object

Term
setCharAt() method
Definition

         The StringBuilder class setCharAt() method allows you to change a character at a specified position within a StringBuilder object

Term
charAt()method
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

Supporting users have an ad free experience!