this keyword and this constructor in java

preview_player
Показать описание
this:- It is a keyword.
It is used to call present class variable and methods.
we can't use this keyword inside a static area.

this():- It is a Constructor call.
It is use to call present class Constructor,we need to use this()
constructor ONLY inside a Constructor that too as a 1st Statement.
Рекомендации по теме
welcome to shbcf.ru