SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Using Arrays and Collections to Store and Retrieve Data

Java Arrays and Collections: List, Set, Map, Deque and Sequenced Collections (1Z0-831)

22 min read1Z0-831 · Using Arrays and Collections to Store and Retrieve DataUpdated

Java arrays and the Collections Framework are the two ways a program stores groups of values: an array is a fixed-length, indexed block of elements, while List, Set, Map and Deque are resizable interfaces from java.util with distinct rules for order, duplicates and lookup. Oracle 1Z0-831 objective 5.1 asks you to create each of them — plus the sequenced collections added in Java 21 — and to add, remove, update, retrieve and sort their elements. This lesson covers array creation and the Arrays utility methods, the difference between modifiable, fixed-size and unmodifiable lists, list, set and map operations and their return values, sorting with Comparable and Comparator, TreeSet and TreeMap navigation, Deque stack and queue methods, and the first/last/reversed() methods of sequenced collections — with the exceptions each one can throw.

You’ve read your 2 free 1Z0-831 lessons

Sign up free to read 48 more lessons — your progress is saved.

Source

This lesson covers the "Using Arrays and Collections to Store and Retrieve Data" domain of the official 1Z0-831 exam guide. Vendors revise their guides — check the source for the current version.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?