USE OF THIS KEYWORD IN JAVA

  


THIS Keyword In Java

    • This must be the first statement if we use this in constructor.
    • This can be used to refer current class instance variable (Data shadowing).
    • This keyword can be used to invoke current class constructor.
    • Use this keyword we can achieve constructor chaining.
    • We can print the value of This keyword using println function which return the value of current class instance.