this Keyword in Java — a practical guide to Java this keyword with clear examples you can reuse in real projects.
Java Tutorial Series (34/90). Prefer one article? Read the complete Java tutorial.
Short description
`this` disambiguates fields from parameters and can call other constructors (`this(…)`).
this usage
class Point {
int x;
Point(int x) { this.x = x; }
}