data structures first quiz

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

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:34 PM on 6/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

Generics

let you specify what type of object a class can hold.

2
New cards

UML = unified modeling language

Blueprint for classes

3
New cards

Encapsulation

is wrapping data and methods together while hiding internal details.

4
New cards

What are javadoc comments

Special comments used to automatically generate documentation.

5
New cards

Overloading

Same method name

DIFFERENT parameters

6
New cards

Overriding

Same method signature

Different implementation INHERITANCE

7
New cards

TRY exception

Code that might fail, it runs

8
New cards

catch exception

handles the error (catches the error and runs appropriately)

9
New cards

finally exception

Even if a exception occurs , this block will execute after the try and catch blocks. It will always run

10
New cards

throw exception

YOU create an exception. This is a way to signal that an error has occurred in the code, allowing for custom error handling.

11
New cards

throws

Declares that a method might throw an exception.

12
New cards

unbounded wildcards

is ? = I dont know what type. It allows for flexibility in the type of objects that can be passed into a method or data structure, providing the ability to work with a range of object types.

EXAMPLE = ArrayList<?> list;

13
New cards

Upper Bounded Wildcards

A contract that specifies methods a class must implement, bounded up a limit = class animal to class dog. only accepts from this family tree, so car cant go into a animal class wilcard

14
New cards

Interfaces

are abstract types that allow for the definition of methods that must be implemented by any class that chooses to implement the interface. They enable polymorphism and provide a way to achieve multiple inheritance.

An interface describes WHAT to do, not HOW to do it.

Imagine you're hiring pilots.

You don't care:

  • how they fly

  • how they trained

  • what plane they use

You only care that:

They can fly()
They can land()

So you make an interface: