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

0.0(0)
Studied by 1 person
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
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 notes

note
Invisible Man Chapter 1
Updated 1173d ago
0.0(0)
note
Media & Information Literacy
Updated 322d ago
0.0(0)
note
Invisible Man Chapter 7
Updated 1173d ago
0.0(0)
note
Unit 3 : Macromolecules
Updated 313d ago
0.0(0)
note
International Cooperation
Updated 1195d ago
0.0(0)
note
Biochimie
Updated 746d ago
0.0(0)
note
Invisible Man Chapter 1
Updated 1173d ago
0.0(0)
note
Media & Information Literacy
Updated 322d ago
0.0(0)
note
Invisible Man Chapter 7
Updated 1173d ago
0.0(0)
note
Unit 3 : Macromolecules
Updated 313d ago
0.0(0)
note
International Cooperation
Updated 1195d ago
0.0(0)
note
Biochimie
Updated 746d ago
0.0(0)

Explore top flashcards

flashcards
S.S. Unit 3 - Study Guide
57
Updated 126d ago
0.0(0)
flashcards
Chapter 27
120
Updated 705d ago
0.0(0)
flashcards
Lit Words: 2 The Boogaloo
24
Updated 496d ago
0.0(0)
flashcards
Lab Practical 3
75
Updated 755d ago
0.0(0)
flashcards
Polyatomic Ions
21
Updated 768d ago
0.0(0)
flashcards
Latin Week 5
26
Updated 920d ago
0.0(0)
flashcards
Connect 4, Unit 3
52
Updated 1011d ago
0.0(0)
flashcards
S.S. Unit 3 - Study Guide
57
Updated 126d ago
0.0(0)
flashcards
Chapter 27
120
Updated 705d ago
0.0(0)
flashcards
Lit Words: 2 The Boogaloo
24
Updated 496d ago
0.0(0)
flashcards
Lab Practical 3
75
Updated 755d ago
0.0(0)
flashcards
Polyatomic Ions
21
Updated 768d ago
0.0(0)
flashcards
Latin Week 5
26
Updated 920d ago
0.0(0)
flashcards
Connect 4, Unit 3
52
Updated 1011d ago
0.0(0)