M0 & M1

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

1/34

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.

35 Terms

1
New cards

for loop

A counted or for each loop used to iterate over a sequence or range.

2
New cards

infinite loop

A loop that continues indefinitely without a terminating condition, represented as for(;;).

3
New cards

casting

The process of converting a value from one data type to another.

4
New cards

zero

The index of the first element of an array.

5
New cards

length (array property)

A property of an array that returns its size.

6
New cards

immutable

A type of object that cannot be modified; String objects are immutable.

7
New cards

toUpperCase

Returns a new string with all characters in upper case.

8
New cards

toLowerCase

Returns a new string with all characters in lower case.

9
New cards

isEmpty

Returns true if the length of a string is 0.

10
New cards

indexOf

Returns the index of the first occurrence of a specified character.

11
New cards

lastIndexOf

Returns the index of the last occurrence of a specified character.

12
New cards

replace

Returns a new string resulting from replacing all occurrences of a character with another.

13
New cards

startsWith

Returns true if the string starts with a specified prefix.

14
New cards

endsWith

Returns true if the string ends with a specified suffix.

15
New cards

substring

Returns a new string that is a substring of this string.

16
New cards

trim

Returns a new string with leading and trailing whitespace removed.

17
New cards

equals

Returns true if this string is equal to the passed string as an argument.

18
New cards

equalsIgnoreCase

Returns true if this string is equal to the passed string as an argument, ignoring case.

19
New cards

compareTo

Compares two strings lexicographically.

20
New cards

charAt

Returns the char value at a specified index.

21
New cards

Key (in Hash Tables/Maps)

A unique identifier used to represent an element in a hash table or hash map.

22
New cards

Value (in Hash Maps)

The data associated with a key in a hash map.

23
New cards

Hashing

A technique used for performing insertions, deletions, and searches in constant average time.

24
New cards

Hash Function

A function that takes the key of an element as input and returns a fixed-size value known as a hash code.

25
New cards

Perfect Hash Function

A hash function that maps each element to a unique position in the collection.

26
New cards

Hash Table

A data structure that uses a hash function to compute the index of a data element based on its key.

27
New cards

Hash Map

A data structure used to store key-value pairs for efficient retrieval.

28
New cards

Collision (in Hashing)

Occurs when multiple keys hash to the same index generated by a hash function.

29
New cards

Linear Probing

A method for resolving hash collisions by searching for the next available slot.

30
New cards

Unit Testing

The process where the smallest functional unit of code is tested.

31
New cards

JUnit

A widely-used framework for writing and running unit tests in Java.

32
New cards

Assertion

A statement that verifies the expected outcome of a function.

33
New cards

Annotation

Metadata used to define the behavior of test methods and classes in JUnit.

34
New cards

Exception Testing

Testing to ensure that code correctly handles and throws exceptions when expected.

35
New cards

Test Class

A class that contains test methods.