Slide06_Strings

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

String

An array of characters used to represent text in Java.

2
New cards

Immutable

An object that cannot be modified after it is created.

3
New cards

charAt()

A method that returns the character at a specified index in a string.

4
New cards

concat()

A method used to concatenate a string to another string.

5
New cards

split()

A method that splits a string into an array based on a given delimiter.

6
New cards

compareTo()

A method that compares two strings lexicographically.

7
New cards

StringBuilder

A mutable sequence of characters used for creating strings that can be modified.

8
New cards

escape sequences

Special characters in strings, such as \n for newline or \t for tab.

9
New cards

length()

A method that retrieves the length of a string.

10
New cards

equals()

A method used to compare the contents of two strings for equality.

11
New cards

indexOf()

A method that returns the index of the first occurrence of a specified substring.

12
New cards

contains()

A method that checks if a specified substring exists in a string.

13
New cards

substring()

A method that returns a substring defined by a starting and ending index.

14
New cards

StringTokenizer

A utility class that allows for the breaking of a string into tokens based on specified delimiters.

15
New cards

initialize Strings

The process of assigning a value to a String variable upon declaration.

16
New cards

mutable

Refers to objects that can be modified after they are created.

17
New cards

runtime restrictions

Limitations that may occur during the execution of code, particularly in relation to performance.

18
New cards

negative index

An index less than zero, which is not allowed in Java string indexing.

19
New cards

array of characters

A fundamental structure of a string that holds characters in a sequential order.

20
New cards

equals method

A method for comparing two strings to check if they have the same value.

21
New cards

String initialization

The process of creating a String instance and assigning it a value.