AP CSA Java OOP Study Guide Flashcards

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

1/25

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core Java concepts, object-oriented programming principles, variable scopes, methods, constructors, inheritance, access modifiers, and reference behavior for AP CSA.

26 Terms

1
New cards

Variable

A named storage location that holds a value.

2
New cards

Primitive type

A basic Java data type such as int, double, boolean, or char.

3
New cards

Reference type

A variable that refers to an object, such as String or Student.

4
New cards

Class

A blueprint that defines data and behavior for objects.

5
New cards

Object

An instance of a class.

6
New cards

Method

A named block of code that performs a task.

7
New cards

Parameter

A variable in a method/constructor definition.

8
New cards

Argument

The actual value supplied when a method/constructor is called.

9
New cards

Return value

The value sent back by a method using return.

10
New cards

Constructor

Special code that runs when an object is created and initializes it.

11
New cards

Inheritance

A child class receives accessible members from a parent class.

12
New cards

Instance variable

A variable belonging to an object, declared inside a class but outside methods.

13
New cards

Local variable

A variable declared inside a method, constructor, or block that exists only within that scope.

14
New cards

Static variable

A class-level variable shared by the class rather than belonging separately to each object.

15
New cards

Scope

The region of a program where a variable can be accessed.

16
New cards

void

A Java keyword indicating that a method does not return a value.

17
New cards

this

A keyword used when a parameter and an instance variable have the same name to identify the current object's instance variable.

18
New cards

extends

A keyword that indicates a subclass inherits accessible members from a parent class.

19
New cards

super

A keyword used in a subclass to call a parent class constructor or reference parent members.

20
New cards

Encapsulation

Keeping an object's data protected and controlling access through methods, such as using private instance variables with public getters and setters.

21
New cards

Constructor Overloading

When a class has more than one constructor as long as their parameter lists are different.

22
New cards

Method Overloading

When methods in a class have the same name but different parameter lists.

23
New cards

public

An access modifier making code accessible from other classes.

24
New cards

private

An access modifier restricting code access so it is available only inside the class where it is declared.

25
New cards

null

A value indicating that a reference variable is not currently referring to an object.

26
New cards

NullPointerException

A runtime error caused by calling an instance method through a null reference variable.