APCSA UNIT 2

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

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:42 AM on 3/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

33 Terms

1
New cards

UML Diagram

A standard way of visualizing the design of a program that displays class names, attributes, behaviors and relationships to other classes.

2
New cards

instance variable

a variable defined in a class that represents an attribute of an object

3
New cards

access modifier

a keyword used to set the visibility of classes, variables, constructors, and methods

4
New cards

encapsulation

an object-oriented programming concept where the instance variables of a class are hidden from other classes and can be accessed only through the methods of the class

5
New cards

refactor

to improve the readability, reusability, or structure of program code without altering its functionality

6
New cards

DRY principle

a software development principle that stands for "Don't Repeat Yourself" which aims to reduce repetition in code

7
New cards

no-argument constructor

a constructor with no parameters

8
New cards

constructor signature

the first line of the constructor which includes the public keyword, the constructor name, and the values to specify when an object is created

9
New cards

default value

a predefined value that is used by a program when the user does not provide a value

10
New cards

actual parameter

the value to assign to the formal parameter

11
New cards

call by value

copying the value of the actual parameter to the constructor's formal parameter

12
New cards

formal parameter

the value to be passed to a constructor or method

13
New cards

local variable

a variable declared and accessible within a specific block of code

14
New cards

overloading

defining two or more constructors or methods with the same name but different signatures

15
New cards

parameterized constructor

a constructor that has a specific number of arguments to be passed to assign values to an object's instance variables

16
New cards

state

the attributes of an object that are represented by its instance variables

17
New cards

scope

where a variable can be used

18
New cards

assignment

using the assignment operator ( = ) to initialize or change the value stored in a variable

19
New cards

initialization

giving a starting value to a variable using the assignment operator ( = )

20
New cards

literal

a source code representation of a value, such as a number or text

21
New cards

primitive type

a basic data type that Java predefines

22
New cards

reference type

a data type that contains a pointer to the memory location of an object

23
New cards

accessor method

gives the value that is currently assigned to an instance variable

24
New cards

application program interface (API)

a library of prewritten classes

25
New cards

library

a collection of methods or reusable components of code

26
New cards

return by value

a copy of the value is given to where the method is called

27
New cards

compound assignment operator

shortcut syntax to perform an operation on both operands and assign the result into the variable on the left

28
New cards

compound expression

a combination of expressions

29
New cards

concatenation

when two Strings are joined together

30
New cards

expression

a combination of data and operators that evaluates to a single value

31
New cards

operand

the data that is operated on

32
New cards

truncate

to cut off data from the end

33
New cards

override

to define a method in a subclass with the same method signature as a method inherited from a superclass