Answers

Question and Answer:

  Home  Java Game Developer

⟩ What is the use of ‘this’ keyword in java?

The ‘this’ keyword is widely observed in all java codes and scripts, and it, in fact, is a reference variable which is used by programmers to refer to the current object in use. The method of the current class can be suitable invoked using the ‘this’ keyword. The java compiler implicitly adds the keyword to the method, if you do not specify the same.

 138 views

More Questions for you: