← Back

this Keyword (Java)

Refers to current object instance inside methods/constructors.

oopjavaUpdated 2025-09-01

Use

  • Disambiguate field vs param
  • Pass current instance

Example

  • this.speed = speed;