Lesson 16 of 34 · Arrays & ArrayList
Quiz: Java Arrays and ArrayList
Time to check what you learned in this chapter: arrays and their zero-based indexes, the length field, default values, 2D grids, ArrayList with wrapper classes, and the difference between copying an array and copying a reference. Each question takes only a moment — and every wrong answer comes with an explanation.
What this quiz covers
The questions check what you learned in the Arrays & ArrayList chapter of Learn Java. Not sure about a topic? Review its lesson first:
- Java Arrays and the for-each Loop
Learn Java arrays: create them, read and write elements by index, use length, loop with for and for-each, and copy arrays safely. Practise in your browser.
- Java 2D Arrays: Grids, Nested Loops and Sorting
Learn Java 2D arrays: build grids, read rows and columns with nested loops, handle jagged arrays and sort with Arrays.sort. Practise in your browser.
- Java ArrayList: Resizable Lists Explained
Learn Java ArrayList: add, get, set and remove elements, wrapper classes like Integer, List.of, sorting and the remove pitfall. Practise in your browser.
Keep learning
Need a quick reminder? The Java cheat sheet has every topic of Learn Java on one page.
Lesson last updated on .