1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
Collection (Data Structure)
ways of retaining, accessing and operating upon many values or items of data
Search
find an item of data within the collection
Sort
rearrange the items of data into a particular order
Array
a collection of data, all with the same data type, referenced by a single variable name. Complex data type
Elements
Individual values within an array
Allocation
a request to the JVM to find enough memory to hold your data
Array syntax
The data type that will be used by all elements
Square brackets [ ]
The name of the variable
Equals Sign
new keyword
Name of the data type of the elements
The number of elements in the array, within square brackets [ ]
Semi Colon
Garbage collection
The memory for the first allocation is automatically reclaimed and the JVM can repurpose it later (When allocating a new array under the same declaration)
Scalar variables
single variables such as int, char, double
.length
gives the length of an array as an int
Permissions
granting the ability for your program to use those memory locations (most common read and write)
Linear search
Checking each index to see if it fits the requirements of what is being looked for
Parallel arrays
multiple arrays, where the values at a particular index are related
Element address
(index * size of data type) + array address
new keyword
finds unused memory that can be used for your array