cpsc 231

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

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.

25 Terms

1
New cards

compiled language

(java and c++) languages that are converted into bytecode before running

2
New cards

interpreted language

(python) read line by line while being ran

3
New cards

primitive types

thing like int, boolean

4
New cards

object types

things like string, linked list

5
New cards

are strings mutable

they are imutable

6
New cards

string types

charAt() .equals() .upperCase

7
New cards

public methods

can be used in any class

8
New cards

private methods

can only be used in the class its created in

9
New cards

void methods

does not return anything

10
New cards

non void method

has to return a value

11
New cards

when to use array list

when you need to acess random indeces and are mainly adding things to the beggining and end of the list (takes less memory)

12
New cards

when to use linked list

not good for random indexing but faster at inserting and removing elements at the beginning and middle of the list

13
New cards

benefits of compiled language

it runs faster because it is getting compiled but it takes longer to develop and debug

14
New cards

benefits of interpretive language

easier to work through and debug but will run slower

15
New cards

.this meaning

s a keyword that acts as a reference to the current object instance within a class

16
New cards

abstract classes

can contain abstract methods and act as a base or template for other methods

-cant make any objects in this class

17
New cards

abstract methods

-don’t need any parameters

18
New cards

method overridding

taking a method from another class maybe the (master one or wtv) but changing what the return will be based on what we want to do (meow)

19
New cards

method overloading

having methods with the same name but dif parameters if one gets chosen over the other ones its overloaded

20
New cards

how to get an inherited class

public class two extends one {

(it’ll now have access to all the info from the parent class)

21
New cards

abstraction

the concept of hiding all the complex details and only showing important aspects of a method

22
New cards

encapsulation

hiding certain parts of class for security using like private and can only be accessed through getters and setters

23
New cards

what happens if the catch block doesn’t work

the exception is not caught and the code will crash and the rest will be skipped

24
New cards

what happens if you try to read a file that doesnt exist

FileNotFoundException will be thrown

25
New cards