THIS keyword in Java Language
Today we will talk about this keyword in Java Language. I will write some important points of the this keyword and will try to implement few points practically too. Before moving further you should know the meaning of the keyword. In every programming language including java, Keyword is defined as: -
Keyword is a reserved words which has a special meaning. There are 50 keywords and 3 literals in the java language.
Ok back to the point, the important points of the this keywords are: -
- this always refers to current object.
- this keyword can be used to resolve ambiguity between local variables and data members.
- this keyword cannot be called within static context.
- this keyword can be used to called the constructor of the same class.
Share this Post[?]





[...] have discussed earlier about the this keyword with you. Now we will do a programming to how to use this keyword practically. It will [...]
[...] program practically proved the statement 1 of the this keyword [...]