AP Computer Science A — 1) Using Objects and Methods (Deep Study Notes)

call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:35 AM on 4/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat
Add student to class section state
Add studentsNo students in these sections. Invite them to track progress!

23 Terms

1
New cards

Object

A bundled package of data and behavior in Java, consisting of state and methods.

2
New cards

Class

A blueprint that defines the state (data) and methods (behavior) for objects of that type.

3
New cards

Java API

A collection of prewritten classes and methods that Java provides for developers.

4
New cards

Reference Type

A type in Java (like String) that stores a reference to an object, not the object itself.

5
New cards

Null

A literal representing 'no object' and can be assigned to any reference variable.

6
New cards

NullPointerException

An exception thrown when a method is called on a null reference.

7
New cards

Constructor

Special code that runs when an object is created, used to initialize the object.

8
New cards

Overloading

Defining multiple constructors or methods with the same name but different parameter lists.

9
New cards

Method Signature

The combination of a method's name, parameters, and return type.

10
New cards

Void Method

A method that performs an action without returning a value.

11
New cards

Non-Void Method

A method that produces a value when called.

12
New cards

Instance Method

A method that is called on an object instance.

13
New cards

Static Method

A method that is called on a class rather than an object.

14
New cards

Method Chaining

Calling multiple methods on an object in a single statement.

15
New cards

Wrapper Class

A class that encapsulates a primitive data type into an object, e.g., Integer wraps int.

16
New cards

Autoboxing

The automatic conversion of a primitive type to its corresponding wrapper class.

17
New cards

Unboxing

The automatic conversion of a wrapper class to its corresponding primitive type.

18
New cards

Math Class

A class in Java providing common mathematical operations and constants.

19
New cards

Math.random()

A method that returns a double value greater than or equal to 0.0 and less than 1.0.

20
New cards

String Immutability

A property of String objects in Java meaning they cannot be changed after creation.

21
New cards

IndexOf Method

A method that returns the index of the first occurrence of a substring within a string, or -1 if not found.

22
New cards

Equals Method

A method used to compare the contents of two strings for equality.

23
New cards

CompareTo Method

A method that compares two strings lexicographically and returns an int indicating the result.