There can be a lot of usage of Java this keyword. In Java, this is a reference variable that refers to the current object.
This is reference variable
Usage of Java this keyword
1) this can be used to refer current class instance variable.
2) this can be used to invoke current class method(implicity)
3) this() can be used to invoke current class constructor
4) this can be passed as an argument in the method call
5) this can be passed as argument in the constructor call
6) this can be used to return the current class instance from the method
source code link :-https://drive.google.com/file/d/1tA-F...
previous video link :- • access modifier in java | java access modi...
In questa pagina del sito puoi guardare il video online this keyword in java | use of this keyword in java | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato LearningPointAabid 13 novembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 54 volte e gli è piaciuto 6 spettatori. Buona visione!