Looks like no one added any tags here yet for you.
What is an array in Java?
An array is an ordered list of values, indexed from 0 to N-1.
How do you reference a particular value in an array?
Using the array name followed by the index in brackets, e.g., scores[2].
What is bounds checking in relation to arrays?
It ensures that an index used in an array reference is within the valid range from 0 to N-1.
What exception is thrown if an array index is out of bounds in Java?
ArrayIndexOutOfBoundsException.
How is an array declared in Java?
Using the syntax: type[] arrayName = new type[size];
What are initializer lists used for in array declarations?
They allow you to instantiate and fill an array in one step.
How can arrays be passed to methods in Java?
An entire array can be passed as a parameter, and its reference is passed.
What is a two-dimensional array in Java?
An array that can be thought of as a table of elements, with rows and columns.
What is the main advantage of using variable-length parameter lists in methods?
It allows methods to accept any number of parameters of the same type without the need to create an array beforehand.
What are 'ragged arrays'?
These are multidimensional arrays where each dimension can have different lengths.
How do you create an array of objects in Java?
By declaring an array of the object type and then instantiating each object separately.
What does the 'length' field of an array represent?
It stores the number of elements in the array.
How do you access the elements of a two-dimensional array?
By specifying two indices, e.g., arrayName[rowIndex][columnIndex].
What happens when you use an initializer list for an array?
The new operator is not used, and the size is determined by the number of items in the list.