Qus:    What are the main uses of this keyword?
Sep 14, 2022 17:35 Java 1 Answers Views: 1200 BASTIENAMY35
Prev Next
Answers (1)
Innovate Feb 25, 2021 15:15
Answer:   There are the following uses of this keyword.
o this can be used to refer to the current class instance variable.
o this can be used to invoke current class method (implicitly)
o this() can be used to invoke the current class constructor.
o this can be passed as an argument in the method call.
o this can be passed as an argument in the constructor call.
o this can be used to return the current class instance from the method.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect