COP 3330 – Object Oriented Programming in Java Quiz 4 Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts and definitions from the COP 3330 course material for Quiz 4.

Last updated 1:14 AM on 4/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

ArrayList class

Allows you to manage a dynamically sized list.

2
New cards

add() method in ArrayList

Has a time complexity of O(1).

3
New cards

ArrayDeque class

Allows you to simulate Stack, Queue, and Double Ended Queue.

4
New cards

add/remove methods in ArrayDeque

Have a time complexity of O(1) for adding/removing first/last elements.

5
New cards

StringTokenizer class

Used to help parse a String with delimiters.

6
New cards

HashSet class

Allows for O(1) expected time insert, delete, and search; unordered.

7
New cards

TreeSet class

Allows for O(lg n) expected time insert, delete, and search; stored as a balanced binary search tree.

8
New cards

HashMap

Maps each item (key) to a value; run-times are similar to HashSet.

9
New cards

TreeMap class

Maps each item (key) to a value; run-times are similar to TreeSet.

10
New cards

PriorityQueue class

Allows for inserting items and deleting the minimum item in O(lg n) time.

11
New cards

Exceptions

Must be reported (thrown) or handled (using try-catch) in methods.

12
New cards

try-catch

Sets up blocks for handling exceptions; can catch different types of exceptions.

13
New cards

Input/Output Files

Uses Scanner for input and PrintWriter for output; remember to close both.

14
New cards

Quiz Format Coding Questions

Involves writing code segments and filling in solutions; no need for template code.

15
New cards

Java API

Used for tracing questions and scoring.

16
New cards

Quiz Aids

Java documentation posted online will be provided, no other aids necessary.