Midterm 1

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

1/61

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:52 AM on 9/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

62 Terms

1
New cards

Compile

translate source code written in Java into a form the computer can EXECUTE.

2
New cards

Interpret

execute a program by reading its instructions, one at a time, without first compiling the entire program into machine code.

3
New cards

Java Virtual Machine (JVM)

interprets at run time, allows bytecode in a .class file be executed by it. software appli cation that simulates a computer.

4
New cards

Constructors

used to create an instance of a class. initializes an object when created.

5
New cards

new

creates an object

6
New cards

super

refers to the parent/superclass

7
New cards

instantiation

creating an object from a class. (ex: Dog d = new Dog();)

8
New cards

method

block of code that performs an action.

9
New cards

declaration

tells Java something exists and gives it a type/name. (ex: int age;)

10
New cards

access modifiers

control who can access a class, variable, or method.

11
New cards

public

can be accessed from anywhere

12
New cards

private

can be accessed only in side the same class

13
New cards

protected

can be accessed only in same package + subclasses

14
New cards

package-private

can only be accessed in the same package

15
New cards

parameters

variable that receives information when a method is called

16
New cards

this

refers to the current object

17
New cards

default constructor

constructor with no parameters

18
New cards

public static void main(String[] args)

accessible to JVM, belongs to class not object, returns nothing, special starting method, array of command-line arguments

19
New cards

System.out.print()

outputs without adding a new line

20
New cards

System.out.println()

outputs while adding a new line

21
New cards

toString

returns a String representation of an object

22
New cards

equals

determines whether two objects are LOGICALLY equal.

23
New cards

==

for primitive types, compares values. for reference types, compares whether two references point to the same object.

24
New cards

!

means NOT

25
New cards

Object class

top-level superclass of Java classes, classes ultimately inherit from this class.

26
New cards

String

represents text

27
New cards

ArrayList<String>

resizable collection

28
New cards

interface List<String>

an interface

29
New cards

primitive type

stores simple values directly, usually lowercase.

30
New cards

reference type

refer to objects, usually uppercase.

31
New cards

Arrays

fixed number of values of the same type

32
New cards

wrapper class

represents primitive values as objects

33
New cards

instance methods/variables

belongs to a specific object

34
New cards

static methods/variables

belongs to the class itself

35
New cards

final

cannot be changed after initialization.

36
New cards

aliases

occurs when multiple reference variables refer to the same object.

37
New cards

casting

treating a value/reference as another type

38
New cards

overloading

same method name with different parameters

39
New cards

overriding

a subclass that provides its own version of an inherited method

40
New cards

@Override tag

not required, but helps catch mistakes and good for documentation

41
New cards

abstract classes/methods

a class that cannot be directly instantiated, and a method that has no implementation in the class. a subclass must implement it.

42
New cards

inheritance

allows one class to inherit from another.

43
New cards

Java “Lookup” rules

if the method exists in the reference’s declared type, the JVM looks for the overridden version (looks down). if the method does not exist, the JVM looks for the inherited version (looks up).

44
New cards

interfaces

defines methods that a class agrees to implement.

45
New cards

Comparable<>

used when a class has a natural ordering.

46
New cards

Comparator

allows you to define a separate way of comparing objects.

47
New cards

polymorphism

means one reference type can refer to different types of objects

48
New cards

remote git

copy of a project stored somewhere outside of your own machine. Great backup, and other people can contribute to your project.

49
New cards

git repository

tracks all changes made to your code

50
New cards

origin git

main remote reopsitory

51
New cards

local copy git

the Git repository stored on your computer that you can work on without connecting to the remote repository.

52
New cards

git add

moves changes to staging area

53
New cards

git commit

records staged changes in local Git history

54
New cards

git push

sends your local commits to the remote repository

55
New cards

git pull

gets changes from the remote repository and incorporates them into your local branch.

56
New cards

git status

shows current state of your working directory.

57
New cards

commit message

briefly describes what changed

58
New cards

fork

your own copy of someone else’s remote repository

59
New cards

branch

separate line of development in a Git repository, lets you work on changes without affecting another branch.

60
New cards

tracked

a file that Git is already aware of and is monitoring for changes.

61
New cards

untracked

a new file that Git knows exists but is not yet tracking.

62
New cards

modified files

a tracked file that has been changed since the last commit.