0 votes
in JAVA by
What is this keyword in java?

1 Answer

0 votes
by

What is this keyword in java?

The this keyword refers to the current object in a method or constructor. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name (because a class attribute is shadowed by a method or constructor parameter).

Related questions

0 votes
asked Dec 7, 2020 in JAVA by SakshiSharma
0 votes
asked Oct 27, 2020 in JAVA by sharadyadav1986
...