Using 'this' keyword
Thethis keyword refers to the current object in a method or constructor.Main Uses:
public class Student {
String name; // 'name' parameter shadows 'name' field
Student(String name) {
this.name = name; // refers to field
}
}