AP CSA Unit 1 Study Notes: Using Objects and Methods (Objects and Methods)

0.0(0)
Studied by 8 people
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceAP Practice
Supplemental Materials
call kaiCall Kai
Card Sorting

1/24

Last updated 3:08 PM on 3/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Object

A single usable entity in a Java program that you can ask for information (via methods) and tell to perform actions.

2
New cards

Class

A blueprint/definition that describes what kinds of objects can exist and what they can do (constructors, methods, and often fields).

3
New cards

Instance

An object created from a particular class; a specific realization of that class.

4
New cards

Constructor

Special code used to set up a new object; has the same name as the class and has no return type.

5
New cards

Method

A named block of code that performs an action or computes a result; called on an object (or sometimes on a class if static).

6
New cards

Dot operator (member access)

The '.' used to access an object’s methods (and other members): objectReference.methodName(…).

7
New cards

Type (of a reference)

The class name on a variable declaration (e.g., String) that determines what methods you are allowed to call using dot notation.

8
New cards

Reference variable

A variable that stores a reference to an object (not the entire object itself).

9
New cards

Reference assignment

Setting one reference variable equal to another (e.g., b = a) so both refer to the same object rather than copying the object.

10
New cards

Instantiation

Creating a new object, typically using the keyword new with a constructor call.

11
New cards

Initialization

Storing an initial value in a variable; for reference variables, storing a reference to an object (often right after instantiation).

12
New cards

new (keyword)

Java keyword used to create objects by calling a constructor (e.g., new String("hi")).

13
New cards

null

A special reference value meaning “no object”; the variable does not refer to any object.

14
New cards

NullPointerException

A runtime error that occurs when you try to use dot notation (call a method/access a member) on a null reference.

15
New cards

Identity (object identity)

Whether two references point to the exact same object in memory; for objects, checked with ==.

16
New cards

Equality (content/value equality)

Whether two objects represent the same content/value; for Strings, typically checked with .equals(…).

17
New cards

== (with objects)

Compares identity for objects (whether two references refer to the same object), not content.

18
New cards

equals(…)

A method commonly used to compare object content/value (e.g., String content), rather than identity.

19
New cards

String literal

A shorthand way to create a String object using quotes (e.g., "hello"), without explicitly writing new String(…).

20
New cards

Immutable

Describes an object whose contents do not change after creation; String is immutable, so many methods return a new String instead of modifying the original.

21
New cards

Void method

A method with return type void; performs an action but returns no value to the caller.

22
New cards

Non-void method

A method that returns a value (e.g., int, double, boolean, String), so the call can be used as an expression.

23
New cards

Parameter

A variable in a method definition that receives a value when the method is called.

24
New cards

Argument

The actual value or expression passed into a method call to match a parameter.

25
New cards

Method overloading

Having multiple methods/constructors with the same name but different parameter lists; Java chooses the version whose parameters match the provided arguments.

Explore top flashcards

flashcards
VM 525 Final Exam
165
Updated 760d ago
0.0(0)
flashcards
Bio Unit Exam 2
153
Updated 848d ago
0.0(0)
flashcards
Conexiones Capítulo 8 (Vocab 1)
68
Updated 1232d ago
0.0(0)
flashcards
20 Amino Acids
20
Updated 435d ago
0.0(0)
flashcards
Pathophysiology Exam #3
65
Updated 1105d ago
0.0(0)
flashcards
6.5 Neurology
29
Updated 1117d ago
0.0(0)
flashcards
Morse Code
26
Updated 1230d ago
0.0(0)
flashcards
Genetics
23
Updated 1097d ago
0.0(0)
flashcards
VM 525 Final Exam
165
Updated 760d ago
0.0(0)
flashcards
Bio Unit Exam 2
153
Updated 848d ago
0.0(0)
flashcards
Conexiones Capítulo 8 (Vocab 1)
68
Updated 1232d ago
0.0(0)
flashcards
20 Amino Acids
20
Updated 435d ago
0.0(0)
flashcards
Pathophysiology Exam #3
65
Updated 1105d ago
0.0(0)
flashcards
6.5 Neurology
29
Updated 1117d ago
0.0(0)
flashcards
Morse Code
26
Updated 1230d ago
0.0(0)
flashcards
Genetics
23
Updated 1097d ago
0.0(0)