1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
String
An array of characters used to represent text in Java.
Immutable
An object that cannot be modified after it is created.
charAt()
A method that returns the character at a specified index in a string.
concat()
A method used to concatenate a string to another string.
split()
A method that splits a string into an array based on a given delimiter.
compareTo()
A method that compares two strings lexicographically.
StringBuilder
A mutable sequence of characters used for creating strings that can be modified.
escape sequences
Special characters in strings, such as \n for newline or \t for tab.
length()
A method that retrieves the length of a string.
equals()
A method used to compare the contents of two strings for equality.
indexOf()
A method that returns the index of the first occurrence of a specified substring.
contains()
A method that checks if a specified substring exists in a string.
substring()
A method that returns a substring defined by a starting and ending index.
StringTokenizer
A utility class that allows for the breaking of a string into tokens based on specified delimiters.
initialize Strings
The process of assigning a value to a String variable upon declaration.
mutable
Refers to objects that can be modified after they are created.
runtime restrictions
Limitations that may occur during the execution of code, particularly in relation to performance.
negative index
An index less than zero, which is not allowed in Java string indexing.
array of characters
A fundamental structure of a string that holds characters in a sequential order.
equals method
A method for comparing two strings to check if they have the same value.
String initialization
The process of creating a String instance and assigning it a value.