Computer Science, asked by ammlan106790, 1 month ago

what is the use of keyword "this" in java​

Answers

Answered by kushaly445
2

Answer:

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).

Similar questions