Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
The "this" keyword refers to the current object within an instance method or constructor. It can be used to refer explicitly to instance variables or invoke other constructors within the same class.
Related terms
Static Keyword: Used to declare variables or methods that belong to the class itself, rather than individual objects.
Method Overloading: The ability to define multiple methods with the same name but different parameters in a class.
Constructor Chaining: Invoking one constructor from another constructor within the same class using "this".