---
title: "Object Instantiation — AP Comp Sci A Definition & Guide"
description: "Object instantiation is creating an object with the new keyword and a constructor call. It's tested in Unit 1 (Topic 1.13) and shows up in every AP CSA FRQ."
canonical: "https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation"
type: "key-term"
subject: "AP Computer Science A"
unit: "Unit 1"
---

# Object Instantiation — AP Comp Sci A Definition & Guide

## Definition

Object instantiation is the process of creating a new object from a class using the keyword new followed by a call to one of the class's constructors, which sets the initial values of the object's attributes (EK 1.13.C.1).

## What It Is

Object instantiation is how a [class](/ap-comp-sci-a/unit-3/abstraction-and-program-design/study-guide/o9VgVeIpKRYZ7N7rXfUz "fv-autolink") goes from being a blueprint to being an actual [object](/ap-comp-sci-a/key-terms/object "fv-autolink") in memory. You write the keyword `new`, then call one of the class's constructors, like `Rectangle r = new Rectangle(3.0, 5.0);`. The constructor has the same name as the class, and its job is to set up the object's initial attribute values using the arguments you pass in.

Two things happen in that one line, and the AP exam tests both. First, you declare a [variable](/ap-comp-sci-a/unit-1/expressions-and-assignment-statements/study-guide/01dr6uUPDAn3SjtK2Psr "fv-autolink") of a reference type (`Rectangle r`), which holds an object reference, or `null` if no object exists yet (EK 1.13.B.1). Second, `new Rectangle(3.0, 5.0)` actually builds the object and hands back a reference to it. The arguments you pass must match the constructor's parameter list in order, number, and type. If a class has multiple constructors with different signatures (that's called overloading), Java picks the one whose parameter list matches your arguments.

## Why It Matters

Instantiation lives in Topic 1.13 (Creating and Storing Objects) in [Unit 1](/ap-comp-sci-a/unit-1 "fv-autolink"): Using Objects and Methods, and it directly supports three learning objectives. [AP Comp Sci A](/ap-comp-sci-a "fv-autolink") 1.13.A asks you to identify which constructor is being called by matching the argument list to a constructor signature. AP Comp Sci A 1.13.B asks you to declare variables of the correct reference type. AP Comp Sci A 1.13.C asks you to actually write the code that creates an object with `new`. Beyond Unit 1, you can't write a single FRQ without it. Designing a class, building an ArrayList, or testing a method all start with `new Something(...)`. If instantiation syntax isn't automatic, everything downstream breaks.

## Connections

### [Object construction (Unit 1)](/ap-comp-sci-a/key-terms/object-construction)

Construction and instantiation describe the same event from two angles. Instantiation is you calling `new`; construction is the constructor running and assigning your arguments to the object's [attributes](/ap-comp-sci-a/key-terms/attribute "fv-autolink"). Same line of code, two halves of the story.

### [Object reference (Unit 1)](/ap-comp-sci-a/key-terms/object-reference)

Instantiation produces an object, but your variable never holds the object itself. It holds a [reference](/ap-comp-sci-a/key-terms/reference "fv-autolink") that points to it. That's why two variables can refer to the same object, and why a reference variable with no object holds null.

### [Call by value (Unit 1)](/ap-comp-sci-a/key-terms/call-by-value)

When you pass arguments to a constructor, Java uses [call by value](/ap-comp-sci-a/key-terms/call-by-value "fv-autolink"), meaning the constructor gets copies of your argument values. For reference types, the copy is a copy of the reference, which is why methods can still modify the object it points to.

### [Constructor overloading (Unit 1)](/ap-comp-sci-a/key-terms/constructor-overloading)

Classes often have several constructors with different signatures (EK 1.13.A.3). When you instantiate, Java matches your argument list against those signatures, so reading signatures carefully is how you predict which constructor runs.

## On the AP Exam

Instantiation is a multiple-choice staple. A typical stem gives you a class definition like `public Book(String t, String a)` and asks which line correctly creates a Book object, or which code segments will compile. The traps are predictable. Watch for arguments in the wrong order (passing an int where a String goes), the wrong number of arguments, a missing `new` keyword, or a declared type that doesn't match the class. Fiveable practice questions mirror this exactly, like asking which line correctly creates a Student object with name "Alice" and age 16. On the free-response section, no question asks you to define instantiation, but you'll use it constantly. Writing `new` expressions correctly, especially inside methods that build and return objects or add elements to an ArrayList, is baseline FRQ survival.

## object instantiation vs Variable declaration

Declaring a variable (`Rectangle r;`) just creates a named slot that can hold an object reference. No object exists yet, and the reference is null. Instantiation (`new Rectangle(3.0, 5.0)`) actually creates the object. You usually do both in one line, which is why they blur together, but on the exam they're tested as separate skills (1.13.B vs 1.13.C). Calling a method on a declared-but-never-instantiated variable gives you a NullPointerException, not a new object.

## Key Takeaways

- Object instantiation means creating an object with the keyword new followed by a call to one of the class's constructors.
- The constructor has the same name as the class, and the arguments you pass must match the parameter list in order, number, and type.
- Declaring a reference variable does not create an object; until you instantiate, the variable holds null.
- A variable of a reference type stores a reference to the object, not the object itself.
- When a class has overloaded constructors, Java chooses the one whose signature matches your argument list.
- Constructor arguments are passed using call by value, so the constructor receives copies of the values you pass in.

## FAQs

### What is object instantiation in AP Comp Sci A?

It's creating an object from a class using the new keyword and a constructor call, like `Student s = new Student("Alice", 16);`. The constructor uses your arguments to set the object's initial attribute values. It's covered in Topic 1.13 of Unit 1.

### Does declaring a variable create an object in Java?

No. `Book b;` only declares a reference variable, and it holds null until you instantiate with `b = new Book("Title", "Author");`. The exam tests this distinction directly, and forgetting it leads to NullPointerExceptions in your code.

### What's the difference between a constructor and instantiation?

The constructor is the code inside the class that initializes the object's attributes. Instantiation is the act of calling that constructor with new. You instantiate; the constructor does the setup work.

### Do constructor arguments have to be in a specific order?

Yes. Arguments must be compatible in order, number, and type with the constructor's parameter list (EK 1.13.C.3). Passing `new Student(16, "Alice")` to a constructor expecting (String, int) won't compile, and that exact mix-up is a favorite MCQ trap.

### Is object instantiation on the AP CSA exam?

Yes, both ways. Multiple-choice questions ask you to pick the line that correctly instantiates an object or identify which overloaded constructor gets called, and every FRQ that builds or returns objects requires you to write new expressions correctly.

## Related Study Guides

- [1.13 Creating and Storing Objects](/ap-comp-sci-a/unit-1/creating-and-storing-objects/study-guide/rUOTKl6Ih5noXJ0GtxJF)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation#resource","name":"Object Instantiation — AP Comp Sci A Definition & Guide","url":"https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-06-11T05:27:18.650Z","isPartOf":{"@type":"Collection","name":"AP Computer Science A Key Terms","url":"https://fiveable.me/ap-comp-sci-a/key-terms"},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation#term","name":"object instantiation","description":"Object instantiation is the process of creating a new object from a class using the keyword new followed by a call to one of the class's constructors, which sets the initial values of the object's attributes (EK 1.13.C.1).","url":"https://fiveable.me/ap-comp-sci-a/key-terms/object-instantiation","inDefinedTermSet":{"@type":"DefinedTermSet","name":"AP Computer Science A Key Terms","url":"https://fiveable.me/ap-comp-sci-a/key-terms"}},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is object instantiation in AP Comp Sci A?","acceptedAnswer":{"@type":"Answer","text":"It's creating an object from a class using the new keyword and a constructor call, like `Student s = new Student(\"Alice\", 16);`. The constructor uses your arguments to set the object's initial attribute values. It's covered in Topic 1.13 of Unit 1."}},{"@type":"Question","name":"Does declaring a variable create an object in Java?","acceptedAnswer":{"@type":"Answer","text":"No. `Book b;` only declares a reference variable, and it holds null until you instantiate with `b = new Book(\"Title\", \"Author\");`. The exam tests this distinction directly, and forgetting it leads to NullPointerExceptions in your code."}},{"@type":"Question","name":"What's the difference between a constructor and instantiation?","acceptedAnswer":{"@type":"Answer","text":"The constructor is the code inside the class that initializes the object's attributes. Instantiation is the act of calling that constructor with new. You instantiate; the constructor does the setup work."}},{"@type":"Question","name":"Do constructor arguments have to be in a specific order?","acceptedAnswer":{"@type":"Answer","text":"Yes. Arguments must be compatible in order, number, and type with the constructor's parameter list (EK 1.13.C.3). Passing `new Student(16, \"Alice\")` to a constructor expecting (String, int) won't compile, and that exact mix-up is a favorite MCQ trap."}},{"@type":"Question","name":"Is object instantiation on the AP CSA exam?","acceptedAnswer":{"@type":"Answer","text":"Yes, both ways. Multiple-choice questions ask you to pick the line that correctly instantiates an object or identify which overloaded constructor gets called, and every FRQ that builds or returns objects requires you to write new expressions correctly."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"AP Computer Science A","item":"https://fiveable.me/ap-comp-sci-a"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/ap-comp-sci-a/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 1","item":"https://fiveable.me/ap-comp-sci-a/unit-1"},{"@type":"ListItem","position":4,"name":"object instantiation"}]}]}
```
