Java_Arrays Flashcards
1
Q
How are arrays declared in Java?
A
2
Q
How are arrays instantiated in Java?
A
3
Q
How are arrays in Java declared, instantiated and assign values in one step?
A
4
Q
How is length of the array accessed?
A
5
Q
What does arraycopy() method do?
A
6
Q
Can we define array of Java object types?
A
7
Q
Does array support polymorphism?
A
8
Q
How are arrays iterated using for-each loop?
A
9
Q
How are multi-dimensional arrays created in Java?
A
10
Q
How are elements in array sorted?
A
11
Q
How is searching done in arrays?
A
12
Q
What happens if the searched element is not found in the binary search of an array?
A
13
Q
How all elements of arrays are populated with one value?
A