Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
A constructor signature refers to the unique combination of a class's name and its parameter types. It helps create instances (objects) of that class with specific initial values.
A default constructor is automatically created by Java if no constructor is explicitly defined in a class. It has no parameters and initializes the object with default values.
A parameterized constructor is a constructor that accepts one or more parameters, allowing you to initialize an object with specific values during its creation.
Instance variables are variables declared within a class but outside of any method. They hold data that is unique to each instance (object) of the class.