Compsci Quiz

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

What are wrapper classes

They provide a way to use primitive data types as objects.

2
New cards

Arraylist <int> → Why is this invalid

Collection classes only store objects. Primitive data types no work.

3
New cards

Collection

Container to hold multiple objects

4
New cards

Framework

Basic structure/toolkit to use something more efficiently.

5
New cards

Java framework

Ready made set of classes and interfaces with built in method you can use.

6
New cards

Collections framework

A set of classes and interfaces
Sorting, Searching, Inserting/Deleting, Data manipulation

7
New cards

Interface

Like a class but cannot be used to create an object.
Method signatures but no body.
Class can implement an interface

8
New cards

What can a class do with an interface that it cannot do with other classes

A class can implement multiple interfaces (like a contract), but cannot extend multiple classes.
It is REQUIRED to override every method in the interface.  

9
New cards

List vs Set collections

List allows duplicates, set does not.

10
New cards

Use ArrayList when

Fast access to elements via index
You don’t need to frequently add/remove elements in the middle

11
New cards

Use LinkedList when

Efficient insertion/deletion in the middle
Random access is not a priority

12
New cards

What is abstraction

Hiding complex details and only showing what is necessary.
Abstract classes cannot be instantiated
Abstract methods must be implemented
Enforces and organizes

13
New cards

Interface vs abstract

Everything in interface is assumed to be abstract.
You can only extend one class, implement as many as you want. Every field in interface is static and final.